DiscoveryClientResult 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
DiscoveryClientResult 클래스의 새 인스턴스를 초기화합니다.
오버로드
DiscoveryClientResult() |
DiscoveryClientResult 클래스의 새 인스턴스를 초기화합니다. |
DiscoveryClientResult(Type, String, String) |
DiscoveryClientResult 클래스의 새 인스턴스를 초기화하고, ReferenceTypeName, Url 및 Filename 속성을 각각 |
DiscoveryClientResult()
DiscoveryClientResult 클래스의 새 인스턴스를 초기화합니다.
public:
DiscoveryClientResult();
public DiscoveryClientResult ();
Public Sub New ()
예제
// Initialize new instance of the DiscoveryClientResult class.
DiscoveryClientResult^ myDiscoveryClientResult = gcnew 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 = "http://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 );
// 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 =
"http://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);
' 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 = _
"http://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)
적용 대상
DiscoveryClientResult(Type, String, String)
DiscoveryClientResult 클래스의 새 인스턴스를 초기화하고, ReferenceTypeName, Url 및 Filename 속성을 각각 referenceType
, url
및 filename
으로 설정합니다.
public:
DiscoveryClientResult(Type ^ referenceType, System::String ^ url, System::String ^ filename);
public DiscoveryClientResult (Type referenceType, string url, string filename);
new System.Web.Services.Discovery.DiscoveryClientResult : Type * string * string -> System.Web.Services.Discovery.DiscoveryClientResult
Public Sub New (referenceType As Type, url As String, filename As String)
매개 변수
- referenceType
- Type
검색 문서에 있는 참조의 형식을 나타내는 클래스의 이름입니다. ReferenceTypeName 속성을 설정합니다.
예제
// Initialize a new instance of the DiscoveryClientResult class.
DiscoveryClientResult^ myDiscoveryClientResult =
gcnew DiscoveryClientResult( System::Web::Services::Discovery::DiscoveryDocumentReference::typeid,
"http://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(
typeof(System.Web.Services.Discovery.DiscoveryDocumentReference),
"http://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.
Dim myDiscoveryClientResult As New DiscoveryClientResult( _
GetType(System.Web.Services.Discovery.DiscoveryDocumentReference), _
"http://localhost/Discovery/Service1_vb.asmx?disco", _
"Service1_vb.disco")
' Add the DiscoveryClientResult to the collection.
myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)