ResourceScope Enumeration

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Identifies the scope of a sharable resource.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Runtime.Versioning
Assembly:  mscorlib (in mscorlib.dll)

[FlagsAttribute]
public enum ResourceScope

Member nameDescription
NoneThere is no shared state.
MachineThe state is shared by objects within the machine.
ProcessThe state is shared within a process.
AppDomainThe state is shared by objects within an AppDomain.
LibraryThe state is shared by objects within a library.
PrivateThe resource is visible to only the type.
AssemblyThe resource is visible at an assembly scope.

A resource is an object that holds state. Examples of resources include a file on disk, a message queue for a process, and a named Mutex. Knowing an object is a resource does not indicate its appropriate use; the important property of a resource is the scope of the resource. The scope includes both the type and the visibility of the resource. The resource type specifies whether the resource is a machine-level resource, such as a file on disk, a process-wide resource, such as a block of non-shared memory, or an application domain-level resource, such as a lock on an instance of a non-marshal by reference object. The visibility scopes are Assembly and Private, the default is Public, which is implicit if Private or Assembly are not indicated. There is no enumeration value for Public.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft