共用方式為


DatabaseActiveDirectory.Alias 屬性

Gets or sets an alternative name for the database that appears in the Active Directory registration of the database.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Alias As String 
    Get 
    Set
'用途
Dim instance As DatabaseActiveDirectory 
Dim value As String 

value = instance.Alias

instance.Alias = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string Alias { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ Alias {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Alias : string with get, set
function get Alias () : String 
function set Alias (value : String)

屬性值

型別:System.String
A String value that specifies the alternative name for the database.

備註

This property will appear with the Active Directory registration of the referenced database.

範例

設定屬性

請參閱

參考

DatabaseActiveDirectory 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

Active Directory Stored Procedures (Transact-SQL)

sp_ActiveDirectory_Obj (Transact-SQL)