Activity.SetCustomProperty(String, Object) Metodo

Definizione

Associa qualsiasi oggetto personalizzato a questa attività. Se l'oggetto specificato propertyName è stato precedentemente associato a un altro oggetto, la proprietà verrà aggiornata in modo da essere associata al nuovo propertyValue oggetto. È consigliabile usare un nome di proprietà univoco per evitare conflitti con chiunque usi lo stesso valore.

public:
 void SetCustomProperty(System::String ^ propertyName, System::Object ^ propertyValue);
public void SetCustomProperty(string propertyName, object? propertyValue);
member this.SetCustomProperty : string * obj -> unit
Public Sub SetCustomProperty (propertyName As String, propertyValue As Object)

Parametri

propertyName
String

Nome a cui associare il valore.

propertyValue
Object

Oggetto da associare ed eseguire il mapping al nome della proprietà.

Si applica a