| DelayLoadUtilsGetTargetAsT Method |
Note: This API is now obsolete.
Get the target of the relationship
Namespace:
SanteDB.Core.Model
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax [ObsoleteAttribute("User LoadProperty()")]
public static T GetTargetAs<T>(
this EntityRelationship me
)
where T : new(), Entity
<ExtensionAttribute>
<ObsoleteAttribute("User LoadProperty()")>
Public Shared Function GetTargetAs(Of T As {New, Entity}) (
me As EntityRelationship
) As T
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"User LoadProperty()")]
generic<typename T>
where T : gcnew(), Entity
static T GetTargetAs(
EntityRelationship^ me
)
[<ExtensionAttribute>]
[<ObsoleteAttribute("User LoadProperty()")>]
static member GetTargetAs :
me : EntityRelationship -> 'T when 'T : new() and Entity
Parameters
- me
- Type: SanteDB.Core.Model.EntitiesEntityRelationship
[Missing <param name="me"/> documentation for "M:SanteDB.Core.Model.DelayLoadUtils.GetTargetAs``1(SanteDB.Core.Model.Entities.EntityRelationship)"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.Core.Model.DelayLoadUtils.GetTargetAs``1(SanteDB.Core.Model.Entities.EntityRelationship)"]
Return Value
Type:
T[Missing <returns> documentation for "M:SanteDB.Core.Model.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