ServiceDescription.TargetNamespace プロパティ
Web サービス記述言語 (WSDL:Web Services Description Language) ファイルを囲む <descriptions> タグの XML targetNamespace 属性を取得または設定します。
Public Property TargetNamespace As String
[C#]
public string TargetNamespace {get; set;}
[C++]
public: __property String* get_TargetNamespace();public: __property void set_TargetNamespace(String*);
[JScript]
public function get TargetNamespace() : String;public function set TargetNamespace(String);
プロパティ値
ServiceDescription で記述された XML Web サービスの URL。
使用例
' Read a ServiceDescription from existing WSDL.
Dim myServiceDescription As ServiceDescription = _
ServiceDescription.Read("Input.vb.wsdl")
myServiceDescription.TargetNamespace = "http://tempuri.org/"
[C#]
// Read a ServiceDescription from existing WSDL.
ServiceDescription myServiceDescription =
ServiceDescription.Read("Input_CS.wsdl");
myServiceDescription.TargetNamespace = "http://tempuri.org/";
[C++]
// Read a ServiceDescription from existing WSDL.
ServiceDescription* myServiceDescription =
ServiceDescription::Read(S"Input_CS.wsdl");
myServiceDescription->TargetNamespace = S"http://tempuri.org/";
[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 ファミリ
参照
ServiceDescription クラス | ServiceDescription メンバ | System.Web.Services.Description 名前空間