Share via


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

適用対象