IManagementService.Create 方法 (CreateRequest)

 

使用指定的描述及父容器的位址來建立新的資源。

命名空間:   Microsoft.ComplexEventProcessing.ManagementService
組件:  Microsoft.ComplexEventProcessing.ManagementService (在 Microsoft.ComplexEventProcessing.ManagementService.dll 中)

語法

[FaultContractAttribute(typeof(ManagementFault), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Fault")]
[FaultContractAttribute(typeof(InvalidDefinitionFault), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidDefinition")]
[OperationContractAttribute(Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Create", 
    ReplyAction = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/CreateResponse")]
[FaultContractAttribute(typeof(InvalidNameFault), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidName")]
CreateResponse Create(
    CreateRequest request
)
[FaultContractAttribute((ManagementFault^::typeid), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Fault")]
[FaultContractAttribute((InvalidDefinitionFault^::typeid), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidDefinition")]
[OperationContractAttribute(Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Create", 
    ReplyAction = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/CreateResponse")]
[FaultContractAttribute((InvalidNameFault^::typeid), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidName")]
CreateResponse^ Create(
    CreateRequest^ request
)
[<FaultContractAttribute(typeof(ManagementFault), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Fault")>]
[<FaultContractAttribute(typeof(InvalidDefinitionFault), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidDefinition")>]
[<OperationContractAttribute(Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Create",
    ReplyAction = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/CreateResponse")>]
[<FaultContractAttribute(typeof(InvalidNameFault), Action = "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidName")>]
abstract Create : 
        request:CreateRequest -> CreateResponse
<FaultContractAttribute(GetType(ManagementFault), Action := "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Fault")>
<FaultContractAttribute(GetType(InvalidDefinitionFault), Action := "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidDefinition")>
<OperationContractAttribute(Action := "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/Create",
    ReplyAction := "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/CreateResponse")>
<FaultContractAttribute(GetType(InvalidNameFault), Action := "http://schemas.microsoft.com/ComplexEventProcessing/2009/05/Management/InvalidName")>
Function Create (
    request As CreateRequest
) As CreateResponse

參數

  • request
    CreateRequest 物件,此物件包含資源物件的 XML 定義和父物件的名稱。

傳回值

Type: Microsoft.ComplexEventProcessing.ManagementService.CreateResponse

包含物件名稱的 CreateResponse 物件。

請參閱

IManagementService 介面
Microsoft.ComplexEventProcessing.ManagementService 命名空間

回到頁首