 | ExtensionMethodsWasLoadedTSource, TReturn(TSource, ExpressionFuncTSource, TReturn) Method |
Returns true if the property is loaded
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static bool WasLoaded<TSource, TReturn>(
this TSource me,
Expression<Func<TSource, TReturn>> propertySelector
)
where TSource : IAnnotatedResource
<ExtensionAttribute>
Public Shared Function WasLoaded(Of TSource As IAnnotatedResource, TReturn) (
me As TSource,
propertySelector As Expression(Of Func(Of TSource, TReturn))
) As Boolean
public:
[ExtensionAttribute]
generic<typename TSource, typename TReturn>
where TSource : IAnnotatedResource
static bool WasLoaded(
TSource me,
Expression<Func<TSource, TReturn>^>^ propertySelector
)
[<ExtensionAttribute>]
static member WasLoaded :
me : 'TSource *
propertySelector : Expression<Func<'TSource, 'TReturn>> -> bool when 'TSource : IAnnotatedResourceParameters
- me TSource
[Missing <param name="me"/> documentation for "M:SanteDB.ExtensionMethods.WasLoaded``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
- propertySelector ExpressionFuncTSource, TReturn
[Missing <param name="propertySelector"/> documentation for "M:SanteDB.ExtensionMethods.WasLoaded``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
Type Parameters
- TSource
[Missing <typeparam name="TSource"/> documentation for "M:SanteDB.ExtensionMethods.WasLoaded``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
- TReturn
[Missing <typeparam name="TReturn"/> documentation for "M:SanteDB.ExtensionMethods.WasLoaded``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
Return Value
Boolean[Missing <returns> documentation for "M:SanteDB.ExtensionMethods.WasLoaded``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also