This documentation is archived and is not being maintained.

_AppDomain.SetData Method

Assigns the specified value to the specified application domain property.

[Visual Basic]
Sub SetData( _
   ByVal name As String, _
   ByVal data As Object _
)
[C#]
void SetData(
   string name,
 object data
);
[C++]
void SetData(
   String* name,
 Object* data
);
[JScript]
function SetData(
   name : String,
 data : Object
);

Parameters

name
The name of an application domain property.
data
The value to set the name property.

Remarks

This method has been superseded by properties of the AppDomainSetup class. The following table shows the AppDomainSetup property that corresponds to a value of name.

Value of 'name' Property
"APPBASE" ApplicationBase
"APP_CONFIG_FILE" ConfigurationFile
"DYNAMIC_BASE" DynamicBase
"DEV_PATH" (no property)
"APP_NAME" ApplicationName
"CACHE_BASE" PrivateBinPath
"BINPATH_PROBE_ONLY" PrivateBinPathProbe
"SHADOW_COPY_DIRS" ShadowCopyDirectories
"FORCE_CACHE_INSTALL" ShadowCopyFiles
"CACHE_BASE" CachePath
(application specific) LicenseFile

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

_AppDomain Interface | _AppDomain Members | System Namespace

Show: