AppDomain.SetData Method

Definition

Assigns a value to an application domain property.

Overloads

Name Description
SetData(String, Object)

Assigns the specified value to the specified application domain property.

SetData(String, Object, IPermission)

Assigns the specified value to the specified application domain property, with a specified permission to demand of the caller when the property is retrieved.

SetData(String, Object)

Source:
AppDomain.cs
Source:
AppDomain.cs
Source:
AppDomain.cs
Source:
AppDomain.cs
Source:
AppDomain.cs

Assigns the specified value to the specified application domain property.

public:
 void SetData(System::String ^ name, System::Object ^ data);
public:
 virtual void SetData(System::String ^ name, System::Object ^ data);
public void SetData(string name, object? data);
public void SetData(string name, object data);
[System.Security.SecurityCritical]
public void SetData(string name, object data);
member this.SetData : string * obj -> unit
abstract member SetData : string * obj -> unit
override this.SetData : string * obj -> unit
[<System.Security.SecurityCritical>]
abstract member SetData : string * obj -> unit
override this.SetData : string * obj -> unit
Public Sub SetData (name As String, data As Object)

Parameters

name
String

The name of a user-defined application domain property to create or change.

data
Object

The value of the property.

Implements

Attributes