| ExtensionMethodsValidateTSourceType Method |
Validates that this object has a target entity
Namespace:
SanteDB
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax public static IEnumerable<ValidationResultDetail> Validate<TSourceType>(
this VersionedAssociation<TSourceType> me
)
where TSourceType : new(), VersionedEntityData<TSourceType>
<ExtensionAttribute>
Public Shared Function Validate(Of TSourceType As {New, VersionedEntityData(Of TSourceType)}) (
me As VersionedAssociation(Of TSourceType)
) As IEnumerable(Of ValidationResultDetail)
public:
[ExtensionAttribute]
generic<typename TSourceType>
where TSourceType : gcnew(), VersionedEntityData<TSourceType>
static IEnumerable<ValidationResultDetail^>^ Validate(
VersionedAssociation<TSourceType>^ me
)
[<ExtensionAttribute>]
static member Validate :
me : VersionedAssociation<'TSourceType> -> IEnumerable<ValidationResultDetail> when 'TSourceType : new() and VersionedEntityData<'TSourceType>
Parameters
- me
- Type: SanteDB.Core.ModelVersionedAssociationTSourceType
[Missing <param name="me"/> documentation for "M:SanteDB.ExtensionMethods.Validate``1(SanteDB.Core.Model.VersionedAssociation{``0})"]
Type Parameters
- TSourceType
[Missing <typeparam name="TSourceType"/> documentation for "M:SanteDB.ExtensionMethods.Validate``1(SanteDB.Core.Model.VersionedAssociation{``0})"]
Return Value
Type:
IEnumerableValidationResultDetail[Missing <returns> documentation for "M:SanteDB.ExtensionMethods.Validate``1(SanteDB.Core.Model.VersionedAssociation{``0})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VersionedAssociationTSourceType. 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