AppContext.SetData(String, Object) Method

Definition

Sets the value of the named data element assigned to the current application domain.

C#
public static void SetData(string name, object? data);

Parameters

name
String

The name of the data element

data
Object

The value of name

Exceptions

name is null.

Applies to

Proizvod Verzije
.NET 7, 8, 9, 10