次の方法で共有


ServiceBrokerGuid プロパティ

Service Broker のインスタンスを一意に識別する Guid オブジェクトを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute> _
Public ReadOnly Property ServiceBrokerGuid As Guid
    Get
'使用
Dim instance As Database
Dim value As Guid

value = instance.ServiceBrokerGuid
[SfcPropertyAttribute]
public Guid ServiceBrokerGuid { get; }
[SfcPropertyAttribute]
public:
property Guid ServiceBrokerGuid {
    Guid get ();
}
[<SfcPropertyAttribute>]
member ServiceBrokerGuid : Guid
function get ServiceBrokerGuid () : Guid

プロパティ値

型: System. . :: . .Guid
Service Broker を一意に識別する Guid オブジェクト。

使用例

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server

'Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases("AdventureWorks")

'Display the database GUIDs.
Console.WriteLine("Database GUID is " + _
db.DatabaseGuid.ToString)
Console.WriteLine("Service Broker GUID is " + _
db.ServiceBrokerGuid.ToString)
Console.WriteLine("Recovery Fork GUID is " + _
db.RecoveryForkGuid.ToString)