OperationContext.Extensions 屬性

定義

從目前訊息內容取得服務擴充部分的集合。Gets the collection of service extensions from the current message context.

public:
 property System::ServiceModel::IExtensionCollection<System::ServiceModel::OperationContext ^> ^ Extensions { System::ServiceModel::IExtensionCollection<System::ServiceModel::OperationContext ^> ^ get(); };
public System.ServiceModel.IExtensionCollection<System.ServiceModel.OperationContext> Extensions { get; }
member this.Extensions : System.ServiceModel.IExtensionCollection<System.ServiceModel.OperationContext>
Public ReadOnly Property Extensions As IExtensionCollection(Of OperationContext)

屬性值

IExtensionCollection<OperationContext>

OperationContext 擴充部分的集合。A collection of extensions of OperationContext.

實作

備註

Extensions 可以使用屬性來取得 OperationContext 用來修改內容或新增自訂狀態之所有延伸的集合。Use the Extensions property to obtain a collection of all extensions of the OperationContext used to modify the context or add custom state. 如需擴充功能的詳細資訊,請參閱 可擴充物件For more information about extensions, see Extensible Objects.

適用於