SqlObjectBase.GetSqlProperty Method
SQL Server 2008 R2
Retrieves the property field if it is legal for the usage, else throws. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
public SqlObjectProperty GetSqlProperty( string field, ObjectPropertyUsages usage )
Parameters
- field
- Type: System.String
The string that represents a property of an object.
- usage
- Type: Microsoft.SqlServer.Management.Sdk.Sfc.ObjectPropertyUsages
The usage of the property of an object.
Return Value
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SqlObjectPropertyThe property field of an object.