WebReference.Documents プロパティ

定義

Web 参照に関連付けられている説明ドキュメントのコレクションを取得します。

public:
 property System::Web::Services::Discovery::DiscoveryClientDocumentCollection ^ Documents { System::Web::Services::Discovery::DiscoveryClientDocumentCollection ^ get(); };
public System.Web.Services.Discovery.DiscoveryClientDocumentCollection Documents { get; }
member this.Documents : System.Web.Services.Discovery.DiscoveryClientDocumentCollection
Public ReadOnly Property Documents As DiscoveryClientDocumentCollection

プロパティ値

DiscoveryClientDocumentCollection WebReference インスタンスの初期化に使用されます。

次のコード例は、このプロパティの使用方法を示しています。 このコード例は、 WebReference クラスに提供されるより大きな例の一部です。

// Print some information about the web reference.
Console.WriteLine("Base Url = {0}", reference.AppSettingBaseUrl);
Console.WriteLine("Url Key = {0}", reference.AppSettingUrlKey);
Console.WriteLine("Documents = {0}", reference.Documents.Count);

注釈

Web 参照に関連付けられている説明ドキュメント コレクションには、 ServiceDescription オブジェクトと XmlSchema オブジェクトのみを含める必要があります。 GenerateWebReferences メソッドは DiscoveryDocument オブジェクトを解釈できません。

適用対象