共用方式為


MessagePartSpecification 建構函式

定義

初始化新的 MessagePartSpecification

多載

MessagePartSpecification()

初始化空的 MessagePartSpecification

MessagePartSpecification(Boolean)

初始化新的 MessagePartSpecification,並指定是否要包含訊息本文。

MessagePartSpecification(XmlQualifiedName[])

使用訊息標頭陣列,初始化新的 MessagePartSpecification

MessagePartSpecification(Boolean, XmlQualifiedName[])

使用訊息標頭陣列,初始化新的 MessagePartSpecification

MessagePartSpecification()

來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs

初始化空的 MessagePartSpecification

public:
 MessagePartSpecification();
public MessagePartSpecification ();
Public Sub New ()

適用於

MessagePartSpecification(Boolean)

來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs

初始化新的 MessagePartSpecification,並指定是否要包含訊息本文。

public:
 MessagePartSpecification(bool isBodyIncluded);
public MessagePartSpecification (bool isBodyIncluded);
new System.ServiceModel.Security.MessagePartSpecification : bool -> System.ServiceModel.Security.MessagePartSpecification
Public Sub New (isBodyIncluded As Boolean)

參數

isBodyIncluded
Boolean

初始化以指定是否在規格中包含訊息本文。

適用於

MessagePartSpecification(XmlQualifiedName[])

來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs

使用訊息標頭陣列,初始化新的 MessagePartSpecification

public:
 MessagePartSpecification(... cli::array <System::Xml::XmlQualifiedName ^> ^ headerTypes);
public MessagePartSpecification (params System.Xml.XmlQualifiedName[] headerTypes);
new System.ServiceModel.Security.MessagePartSpecification : System.Xml.XmlQualifiedName[] -> System.ServiceModel.Security.MessagePartSpecification
Public Sub New (ParamArray headerTypes As XmlQualifiedName())

參數

headerTypes
XmlQualifiedName[]

要使用之標頭類型的陣列。

備註

每個標頭都是使用其名稱和命名空間所指定。

適用於

MessagePartSpecification(Boolean, XmlQualifiedName[])

來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs
來源:
MessagePartSpecification.cs

使用訊息標頭陣列,初始化新的 MessagePartSpecification

public:
 MessagePartSpecification(bool isBodyIncluded, ... cli::array <System::Xml::XmlQualifiedName ^> ^ headerTypes);
public MessagePartSpecification (bool isBodyIncluded, params System.Xml.XmlQualifiedName[] headerTypes);
new System.ServiceModel.Security.MessagePartSpecification : bool * System.Xml.XmlQualifiedName[] -> System.ServiceModel.Security.MessagePartSpecification
Public Sub New (isBodyIncluded As Boolean, ParamArray headerTypes As XmlQualifiedName())

參數

isBodyIncluded
Boolean

初始化以指定是否在規格中包含訊息本文。

headerTypes
XmlQualifiedName[]

要使用之標頭類型的陣列。

備註

每個標頭都是使用其名稱和命名空間所指定。 此外,isBodyIncluded 參數還會指定是否要將訊息本文包含在內。

適用於