RoleManager.GetLocalResource Method

Returns a reference to the local store named in the service definition file.

Namespace: Microsoft.ServiceHosting.ServiceRuntime
Assembly: Microsoft.ServiceHosting.ServiceRuntime (in microsoft.servicehosting.serviceruntime.dll)

Usage

    Dim localResourceName As String
Dim returnValue As ILocalResource

returnValue = RoleManager.GetLocalResource(localResourceName)

Syntax

'Declaration
Public Shared Function GetLocalResource ( _
    localResourceName As String _
) As ILocalResource
public static ILocalResource GetLocalResource (
    string localResourceName
)
public:
static ILocalResource^ GetLocalResource (
    String^ localResourceName
)
public static ILocalResource GetLocalResource (
    String localResourceName
)
public static function GetLocalResource (
    localResourceName : String
) : ILocalResource

Parameters

  • localResourceName
    The name of the local store resource.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008, and Windows 2000

Target Platforms

See Also

Reference

RoleManager Class
RoleManager Members
Microsoft.ServiceHosting.ServiceRuntime Namespace