探索ドキュメントの参照の種類を表すクラス名。
Public Property ReferenceTypeName As String
[C#]
public string ReferenceTypeName {get; set;}
[C++]
public: __property String* get_ReferenceTypeName();public: __property void set_ReferenceTypeName(String*);
[JScript]
public function get ReferenceTypeName() : String;public function set ReferenceTypeName(String);
プロパティ値
参照の種類を表すクラス名。既定値は null 参照 (Visual Basic では Nothing) です。
解説
探索ドキュメント内の参照には、サービスの説明、XSD スキーマ、他の探索ドキュメントへの参照を含めることができます。したがって、 ReferenceTypeName には、 ServiceDescription 、 XmlSchema 、および DiscoveryDocument の値を使用できます。
使用例
' Initialize a new instance of the DiscoveryClientResult class.
Dim myDiscoveryClientResult As New DiscoveryClientResult()
' Set the type of reference in the discovery document as
' DiscoveryDocumentReference.
myDiscoveryClientResult.ReferenceTypeName = _
"System.Web.Services.Discovery.DiscoveryDocumentReference"
' Set the URL for the reference.
myDiscoveryClientResult.Url = _
"https://localhost/Discovery/Service1_vb.asmx?disco"
' Set the name of the file in which the reference is saved.
myDiscoveryClientResult.Filename = "Service1_vb.disco"
' Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
[C#]
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
new DiscoveryClientResult();
// Set the type of reference in the discovery document as
// DiscoveryDocumentReference.
myDiscoveryClientResult.ReferenceTypeName =
"System.Web.Services.Discovery.DiscoveryDocumentReference";
// Set the URL for the reference.
myDiscoveryClientResult.Url =
"https://localhost/Discovery/Service1_cs.asmx?disco";
// Set the name of the file in which the reference is saved.
myDiscoveryClientResult.Filename = "Service1_cs.disco";
// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
[C++]
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult* myDiscoveryClientResult =
new DiscoveryClientResult();
// Set the type of reference in the discovery document as
// DiscoveryDocumentReference.
myDiscoveryClientResult->ReferenceTypeName =
S"System.Web.Services.Discovery.DiscoveryDocumentReference";
// Set the URL for the reference.
myDiscoveryClientResult->Url =
S"https://localhost/Discovery/Service1_cs.asmx?disco";
// Set the name of the file in which the reference is saved.
myDiscoveryClientResult->Filename = S"Service1_cs.disco";
// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection->Add(myDiscoveryClientResult);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
DiscoveryClientResult クラス | DiscoveryClientResult メンバ | System.Web.Services.Discovery 名前空間