IMobileUserService.DisableUser Method

[IMobileUserService.DisableUser is no longer available for use as of Windows Server 2012 Essentials.] Disables a user.

Namespace: Microsoft.WindowsServerSolutions.Mobile.Web.Users
Assembly: MobileWeb (in MobileWeb.dll)

Usage

'Usage
Dim instance As IMobileUserService
Dim userId As String
Dim returnValue As Boolean

returnValue = instance.DisableUser(userId)

Syntax

'Declaration
<OperationContractAttribute> _
Function DisableUser ( _
    userId As String _
) As Boolean
[OperationContractAttribute] 
bool DisableUser (
    string userId
)
[OperationContractAttribute] 
bool DisableUser (
    String^ userId
)
/** @attribute OperationContractAttribute() */ 
boolean DisableUser (
    String userId
)
OperationContractAttribute 
function DisableUser (
    userId : String
) : boolean

Parameters

  • userId
    ID of the user to disable.

Return Value

Returns Boolean. true if the user has been disabled; otherwise false.

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 Server 2008 R2 x64, Windows 7 x64, Windows Server 2008 x64, Windows Vista x64

See Also

Reference

IMobileUserService Interface
IMobileUserService Members
Microsoft.WindowsServerSolutions.Mobile.Web.Users Namespace

Copyright © 2012 by Microsoft Corporation. All rights reserved.