Default 屬性
Gets or sets a SQL Server default that is bound to the user-defined data type.
此 API 不符合 CLS 標準。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcReferenceAttribute(GetType(Default), "Server[@Name = '{0}']/Database[@Name = '{1}']/Default[@Name='{2}' and @Schema='{3}']", _
)> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
<CLSCompliantAttribute(False)> _
Public Property Default As String
Get
Set
'用途
Dim instance As UserDefinedDataType
Dim value As String
value = instance.Default
instance.Default = value
[SfcReferenceAttribute(typeof(Default), "Server[@Name = '{0}']/Database[@Name = '{1}']/Default[@Name='{2}' and @Schema='{3}']",
)]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
[CLSCompliantAttribute(false)]
public string Default { get; set; }
[SfcReferenceAttribute(typeof(Default), L"Server[@Name = '{0}']/Database[@Name = '{1}']/Default[@Name='{2}' and @Schema='{3}']",
)]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
[CLSCompliantAttribute(false)]
public:
property String^ Default {
String^ get ();
void set (String^ value);
}
[<SfcReferenceAttribute(typeof(Default), "Server[@Name = '{0}']/Database[@Name = '{1}']/Default[@Name='{2}' and @Schema='{3}']",
)>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
[<CLSCompliantAttribute(false)>]
member Default : string with get, set
function get Default () : String
function set Default (value : String)
屬性值
型別:System. . :: . .String
A String value that specifies the bound default.