DiscoveryClientResult クラスの新しいインスタンスを初期化し、ReferenceTypeName プロパティを referenceType に、Url プロパティを url に、Filename プロパティを filename に設定します。
名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
'宣言
Public Sub New ( _
referenceType As Type, _
url As String, _
filename As String _
)
'使用
Dim referenceType As Type
Dim url As String
Dim filename As String
Dim instance As New DiscoveryClientResult(referenceType, url, filename)
public DiscoveryClientResult (
Type referenceType,
string url,
string filename
)
public:
DiscoveryClientResult (
Type^ referenceType,
String^ url,
String^ filename
)
public DiscoveryClientResult (
Type referenceType,
String url,
String filename
)
public function DiscoveryClientResult (
referenceType : Type,
url : String,
filename : String
)
適用できません。
パラメータ
- referenceType
探索ドキュメントの参照の種類を表すクラス名。ReferenceTypeName プロパティを設定します。
- url
参照先の URL。Url プロパティを設定します。
- filename
参照が保存されているファイルの名前。Filename プロパティを設定します。
使用例
' Initialize a new instance of the DiscoveryClientResult class.
Dim myDiscoveryClientResult As New DiscoveryClientResult( _
GetType(System.Web.Services.Discovery.DiscoveryDocumentReference), _
"https://localhost/Discovery/Service1_vb.asmx?disco", _
"Service1_vb.disco")
' Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
new DiscoveryClientResult(
typeof(System.Web.Services.Discovery.DiscoveryDocumentReference),
"https://localhost/Discovery/Service1_cs.asmx?disco",
"Service1_cs.disco");
// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult^ myDiscoveryClientResult =
gcnew DiscoveryClientResult( System::Web::Services::Discovery::DiscoveryDocumentReference::typeid,
"https://localhost/Discovery/Service1_cs.asmx?disco","Service1_cs.disco" );
// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult myDiscoveryClientResult =
new DiscoveryClientResult(System.Web.Services.
Discovery.DiscoveryDocumentReference.class.ToType(),
"https://localhost/Discovery/Service1_jsl.asmx?disco",
"Service1_jsl.disco");
// Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
DiscoveryClientResult クラス
DiscoveryClientResult メンバ
System.Web.Services.Discovery 名前空間