C# Class Opc.Ua.Configuration.AccountInfo

Stores information about an account.
Inheritance: IComparable
Mostra file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
ApplyFilters ( AccountFilters filters, IList accounts ) : IList

Applies the filters to the accounts.

ApplyFilters ( AccountFilters filters ) : bool

Applies the filters to the account

CompareTo ( object obj ) : int

Compares the obj.

Create ( string identityName ) : AccountInfo

Creates an account info object from an identity name.

CreateUser ( string username, string password ) : AccountInfo

Creates a new NT user account.

GetAccessRuleSource ( FileInfo file, FileSystemAccessRule inheritedRule ) : DirectoryInfo

Returns the directory that is the source for the specified access rule.

GetApplicationRights ( Opc accessType, FileSystemRights accessRights ) : ApplicationAccessRight

Returns the application rights implied by the file system rights.

GetIdentityReference ( ) : IdentityReference

Returns the identity reference for the account.

LookupAccountSid ( string accountName ) : string

Queries the SID table for the specified account name.

LookupDomainSid ( string domainName ) : string

Queries the SID table for the specified account name.

Query ( AccountFilters filters ) : IList

Queries the account table for the specified accounts.

ToString ( ) : string

Private Methods

Method Description
NetUserAdd ( [ servername, int level, IntPtr buf, int &parm_err ) : int
NetUserSetInfo ( [ servername, [ username, int level, IntPtr buf, int &parm_err ) : int

Method Details

ApplyFilters() public static method

Applies the filters to the accounts.
public static ApplyFilters ( AccountFilters filters, IList accounts ) : IList
filters AccountFilters
accounts IList
return IList

ApplyFilters() public method

Applies the filters to the account
public ApplyFilters ( AccountFilters filters ) : bool
filters AccountFilters
return bool

CompareTo() public method

Compares the obj.
public CompareTo ( object obj ) : int
obj object
return int

Create() public static method

Creates an account info object from an identity name.
public static Create ( string identityName ) : AccountInfo
identityName string
return AccountInfo

CreateUser() public static method

Creates a new NT user account.
public static CreateUser ( string username, string password ) : AccountInfo
username string
password string
return AccountInfo

GetAccessRuleSource() public static method

Returns the directory that is the source for the specified access rule.
public static GetAccessRuleSource ( FileInfo file, FileSystemAccessRule inheritedRule ) : DirectoryInfo
file System.IO.FileInfo
inheritedRule System.Security.AccessControl.FileSystemAccessRule
return System.IO.DirectoryInfo

GetApplicationRights() public static method

Returns the application rights implied by the file system rights.
public static GetApplicationRights ( Opc accessType, FileSystemRights accessRights ) : ApplicationAccessRight
accessType Opc
accessRights FileSystemRights
return ApplicationAccessRight

GetIdentityReference() public method

Returns the identity reference for the account.
public GetIdentityReference ( ) : IdentityReference
return System.Security.Principal.IdentityReference

LookupAccountSid() public static method

Queries the SID table for the specified account name.
public static LookupAccountSid ( string accountName ) : string
accountName string
return string

LookupDomainSid() public static method

Queries the SID table for the specified account name.
public static LookupDomainSid ( string domainName ) : string
domainName string
return string

Query() public static method

Queries the account table for the specified accounts.
public static Query ( AccountFilters filters ) : IList
filters AccountFilters
return IList

ToString() public method

public ToString ( ) : string
return string