共用方式為


OperationInfo.Clone 方法

定義

建立物件的複本。

public:
 override System::Workflow::Activities::OperationInfoBase ^ Clone();
public override System.Workflow.Activities.OperationInfoBase Clone ();
override this.Clone : unit -> System.Workflow.Activities.OperationInfoBase
Public Overrides Function Clone () As OperationInfoBase

傳回

OperationInfo 物件的複本。

範例

下列範例示範如何使用 Clone 方法。

OperationInfo info1 = new OperationInfo();
OperationInfo info2 = (OperationInfo)info1.Clone();
Dim info1 As New OperationInfo()
Dim info2 As OperationInfo = CType(info1.Clone(), OperationInfo)

備註

此方法會建立 OperationInfo 物件的深層複本,且具有相同的 ContractNameIsOneWayParametersProtectionLevel 值。

適用於