| ExtensionMethodsLoadCollectionTReturn Method (IAnnotatedResource, String, Boolean) |
Delay load property
Namespace:
SanteDB
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax public static IEnumerable<TReturn> LoadCollection<TReturn>(
this IAnnotatedResource me,
string propertyName,
bool forceReload = false
)
<ExtensionAttribute>
Public Shared Function LoadCollection(Of TReturn) (
me As IAnnotatedResource,
propertyName As String,
Optional forceReload As Boolean = false
) As IEnumerable(Of TReturn)
public:
[ExtensionAttribute]
generic<typename TReturn>
static IEnumerable<TReturn>^ LoadCollection(
IAnnotatedResource^ me,
String^ propertyName,
bool forceReload = false
)
[<ExtensionAttribute>]
static member LoadCollection :
me : IAnnotatedResource *
propertyName : string *
?forceReload : bool
(* Defaults:
let _forceReload = defaultArg forceReload false
*)
-> IEnumerable<'TReturn>
Parameters
- me
- Type: SanteDB.Core.Model.InterfacesIAnnotatedResource
[Missing <param name="me"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``1(SanteDB.Core.Model.Interfaces.IAnnotatedResource,System.String,System.Boolean)"]
- propertyName
- Type: SystemString
[Missing <param name="propertyName"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``1(SanteDB.Core.Model.Interfaces.IAnnotatedResource,System.String,System.Boolean)"]
- forceReload (Optional)
- Type: SystemBoolean
[Missing <param name="forceReload"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``1(SanteDB.Core.Model.Interfaces.IAnnotatedResource,System.String,System.Boolean)"]
Type Parameters
- TReturn
[Missing <typeparam name="TReturn"/> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``1(SanteDB.Core.Model.Interfaces.IAnnotatedResource,System.String,System.Boolean)"]
Return Value
Type:
IEnumerableTReturn[Missing <returns> documentation for "M:SanteDB.ExtensionMethods.LoadCollection``1(SanteDB.Core.Model.Interfaces.IAnnotatedResource,System.String,System.Boolean)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAnnotatedResource. 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