Server.Endpoints Property

Endpoint オブジェクトのコレクションを表します。各 Endpoint オブジェクトは、Microsoft SQL Server のインスタンスで定義されたエンドポイントを表します。

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

構文

'宣言
Public ReadOnly Property Endpoints As EndpointCollection
public EndpointCollection Endpoints { get; }
public:
property EndpointCollection^ Endpoints {
    EndpointCollection^ get ();
}
/** @property */
public EndpointCollection get_Endpoints ()
public function get Endpoints () : EndpointCollection

プロパティ値

SQL Server のインスタンスで定義されたすべてのエンドポイントを表す EndpointCollection オブジェクトです。

解説

更新されたテキスト :

更新されたテキスト :

Endpoint クラスは、SQL Server サービスのネットワーク接続を管理するために使用されます。これらのサービスには、データベース ミラーリング、Service Broker、Transact-SQL、SOAP 要求などがあり、ペイロード タイプとも呼ばれます。

この名前空間、クラス、またはメンバは、Microsoft .NET Framework Version 2.0 でのみサポートされています。

使用例

'Set up a database mirroring endpoint on the server before setting up a database mirror.
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Define an Endpoint object variable for database mirroring.
Dim ep As Endpoint
ep = New Endpoint(srv, "Mirroring_Endpoint")
ep.ProtocolType = ProtocolType.Tcp
ep.EndpointType = EndpointType.DatabaseMirroring
'Specify the protocol ports.
ep.Protocol.Http.SslPort = 5024
ep.Protocol.Tcp.ListenerPort = 6666
'Specify the role of the payload.
ep.Payload.DatabaseMirroring.ServerMirroringRole = ServerMirroringRole.All
'Create the endpoint on the instance of SQL Server.
ep.Create()
'Start the endpoint.
ep.Start()
Console.WriteLine(ep.EndpointState)

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace

その他の技術情報

Visual Basic .NET でデータベース ミラーリング エンドポイント サービスを作成する方法
コレクションの使用
エンドポイントの実装
サーバーの管理

変更履歴

リリース

履歴

変更内容 :
  • Server クラスの Endpoints プロパティから、データベース ミラーリングに関する免責の記述を削除しました。

リリース

履歴

新しい内容 :
  • 「例」セクションにコード サンプルを追加しました。

  • 「解説」セクションに説明を追加しました。