ModelAnnotation.SetProperty<TProperty> Method
Sets the value of the provided property.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Sub SetProperty(Of TProperty) ( _
propertyClass As ModelPropertyClass, _
property As TProperty _
)
public void SetProperty<TProperty>(
ModelPropertyClass propertyClass,
TProperty property
)
public:
generic<typename TProperty>
virtual void SetProperty(
ModelPropertyClass^ propertyClass,
TProperty property
) sealed
abstract SetProperty :
propertyClass:ModelPropertyClass *
property:'TProperty -> unit
override SetProperty :
propertyClass:ModelPropertyClass *
property:'TProperty -> unit
JScript does not support generic types or methods.
Type Parameters
- TProperty
The Type of the property to be set.
Parameters
- propertyClass
Type: Microsoft.Data.Schema.SchemaModel.ModelPropertyClass
A ModelPropertyClass object.
- property
Type: TProperty
A value of type TProperty.
Implements
IModelPropertyContainer.SetProperty<TProperty>(ModelPropertyClass, TProperty)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.