Dela via


ICustomProvider.AddUser Method

Adds a Windows account to the list of allowed users that have access to the configuration store..

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in microsoft.applicationserver.caching.core.dll)

Usage

'Usage
Dim instance As ICustomProvider
Dim machine As String
Dim user As String
Dim returnValue As Object

returnValue = instance.AddUser(machine, user)

Syntax

'Declaration
Function AddUser ( _
    machine As String, _
    user As String _
) As Object
Object AddUser (
    string machine,
    string user
)
Object^ AddUser (
    String^ machine, 
    String^ user
)
Object AddUser (
    String machine, 
    String user
)
function AddUser (
    machine : String, 
    user : String
) : Object

Parameters

  • machine
    The machine name.
  • user
    The user name.

Return Value

Returns aObject that can be passed to the RemoveUser method in the case of a rollback.

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

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

ICustomProvider Interface
ICustomProvider Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26