Column.Rule 属性

Gets or sets the rule that is bound to the column.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcReferenceAttribute(GetType(Rule), "Server[@Name = '{0}']/Database[@Name = '{1}']/Rule[@Name='{2}' and @Schema='{3}']",  _
    )> _
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property Rule As String 
    Get 
    Set
用法
Dim instance As Column 
Dim value As String 

value = instance.Rule

instance.Rule = value
[SfcReferenceAttribute(typeof(Rule), "Server[@Name = '{0}']/Database[@Name = '{1}']/Rule[@Name='{2}' and @Schema='{3}']", 
    )]
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string Rule { get; set; }
[SfcReferenceAttribute(typeof(Rule), L"Server[@Name = '{0}']/Database[@Name = '{1}']/Rule[@Name='{2}' and @Schema='{3}']", 
    )]
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property String^ Rule {
    String^ get ();
    void set (String^ value);
}
[<SfcReferenceAttribute(typeof(Rule), "Server[@Name = '{0}']/Database[@Name = '{1}']/Rule[@Name='{2}' and @Schema='{3}']", 
    )>]
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member Rule : string with get, set
function get Rule () : String 
function set Rule (value : String)

属性值

类型:System.String
A String value that specifies the rule that is bound to the column.

注释

注意注意

The value of the Rule property is always treated as an empty string by columns based on the UserDefinedTableType object.

示例

使用数据库对象

请参阅

参考

Column 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

创建、更改和删除规则