ModelRelationshipInstance.GetProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetProperty(ModelPropertyClass) |
Retrieves properties for this relationship instance. |
GetProperty<T>(ModelPropertyClass) |
Retrieves properties for this relationship instance. |
GetProperty(ModelPropertyClass)
Retrieves properties for this relationship instance.
public object GetProperty (Microsoft.SqlServer.Dac.Model.ModelPropertyClass property);
member this.GetProperty : Microsoft.SqlServer.Dac.Model.ModelPropertyClass -> obj
Public Function GetProperty (property As ModelPropertyClass) As Object
Parameters
- property
- ModelPropertyClass
ModelPropertyClass property to retrieve.
Returns
Property value.
Exceptions
If the supplied property
is not supported on this instance.
Applies to
GetProperty<T>(ModelPropertyClass)
Retrieves properties for this relationship instance.
public T GetProperty<T> (Microsoft.SqlServer.Dac.Model.ModelPropertyClass property);
member this.GetProperty : Microsoft.SqlServer.Dac.Model.ModelPropertyClass -> 'T
Public Function GetProperty(Of T) (property As ModelPropertyClass) As T
Type Parameters
- T
Type of the property value.
Parameters
- property
- ModelPropertyClass
ModelPropertyClass property to retrieve.
Returns
Property value.
Exceptions
If the supplied property
is not supported on this instance.
If the property type cannot be cast to T.