OperationInfo.Clone Método

Definición

Crea una copia del objeto.Creates a copy of the object.

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

Devoluciones

OperationInfoBase

La copia del objeto OperationInfo.The copy of the OperationInfo object.

Ejemplos

En el siguiente ejemplo se muestra cómo se utiliza el método Clone.The following example demonstrates how to use the Clone method.

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

Comentarios

Este método crea una copia en profundidad del objeto OperationInfo, con los mismos valores ContractName, IsOneWay, Parameters y ProtectionLevel.This method creates a deep copy of the OperationInfo object, with the same ContractName, IsOneWay, Parameters, and ProtectionLevel values.

Se aplica a