共用方式為


ServerGroup.ServerType 屬性

Gets the Guid object value that specifies the type of server associated with the server group.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property ServerType As Guid 
    Get
'用途
Dim instance As ServerGroup 
Dim value As Guid 

value = instance.ServerType
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public Guid ServerType { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property Guid ServerType {
    Guid get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member ServerType : Guid
function get ServerType () : Guid

屬性值

型別:System.Guid
A Guid system object value that specifies the type of server associated with the server group.

請參閱

參考

ServerGroup 類別

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

管理已註冊的伺服器

sp_ActiveDirectory_SCP (Transact-SQL)