 | DelayLoadUtilsGetTargetAsT Method |
Note: This API is now obsolete.
Get the target of the relationship
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax[ObsoleteAttribute("Use LoadProperty()")]
public static T GetTargetAs<T>(
this EntityRelationship me
)
where T : new(), Entity
<ExtensionAttribute>
<ObsoleteAttribute("Use LoadProperty()")>
Public Shared Function GetTargetAs(Of T As {New, Entity}) (
me As EntityRelationship
) As Tpublic:
[ExtensionAttribute]
[ObsoleteAttribute(L"Use LoadProperty()")]
generic<typename T>
where T : gcnew(), Entity
static T GetTargetAs(
EntityRelationship^ me
)
[<ExtensionAttribute>]
[<ObsoleteAttribute("Use LoadProperty()")>]
static member GetTargetAs :
me : EntityRelationship -> 'T when 'T : new() and EntityParameters
- me EntityRelationship
[Missing <param name="me"/> documentation for "M:SanteDB.DelayLoadUtils.GetTargetAs``1(SanteDB.Core.Model.Entities.EntityRelationship)"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.DelayLoadUtils.GetTargetAs``1(SanteDB.Core.Model.Entities.EntityRelationship)"]
Return Value
T[Missing <returns> documentation for "M:SanteDB.DelayLoadUtils.GetTargetAs``1(SanteDB.Core.Model.Entities.EntityRelationship)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
EntityRelationship. 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