WorkflowServiceAttributes.Namespace 屬性

定義

取得或設定 Web 服務描述語言 (WSDL) 中服務的目標命名空間值。

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String

屬性值

String

設定 Namespace 屬性的值。

範例

下列範例將示範如何存取 Namespace 屬性。

WorkflowServiceAttributes attributes = new WorkflowServiceAttributes();
attributes.Namespace = "Microsoft.Samples.WorkflowServices.SampleCode";
Dim attributes As New WorkflowServiceAttributes()
attributes.Namespace = "Microsoft.Samples.WorkflowServices.SampleCode"

備註

這個值會對應至匯出時包含專案之 targetNamespace 專案的 屬性值 <wsdl:definitions><wsdl:service> 預設值為 null。

適用於