C# Class DsatsDemo.LockConditionState

Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
GetChildren ( ISystemContext context, IList children ) : void

Populates a list with the children that belong to the node.

HasPermission ( X509Certificate2 certificate ) : bool

Checks if the certificate has access to the lock.

LockConditionState ( NodeState parent ) : System

Initializes the type with its default attribute values.

RequestLock ( ISystemContext context ) : void

Requests the lock.

SetLock ( ISystemContext context ) : void

Grants the lock.

SetPermission ( string thumbprint ) : void

Specifies the thumbprint of a certificate that has access to the lock.

Unlock ( ISystemContext context ) : void

Releases the lock.

Méthodes protégées

Méthode Description
FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState

Finds the child with the specified browse name.

GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId

Returns the id of the default type definition node for the instance.

Initialize ( ISystemContext context ) : void

Initializes the instance.

InitializeOptionalChildren ( ISystemContext context ) : void

Initializes the any option children defined for the instance.

Method Details

FindChild() protected méthode

Finds the child with the specified browse name.
protected FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState
context ISystemContext
browseName Opc.Ua.QualifiedName
createOrReplace bool
replacement Opc.Ua.BaseInstanceState
Résultat Opc.Ua.BaseInstanceState

GetChildren() public méthode

Populates a list with the children that belong to the node.
public GetChildren ( ISystemContext context, IList children ) : void
context ISystemContext The context for the system being accessed.
children IList The list of children to populate.
Résultat void

GetDefaultTypeDefinitionId() protected méthode

Returns the id of the default type definition node for the instance.
protected GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId
namespaceUris Opc.Ua.NamespaceTable
Résultat Opc.Ua.NodeId

HasPermission() public méthode

Checks if the certificate has access to the lock.
public HasPermission ( X509Certificate2 certificate ) : bool
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat bool

Initialize() protected méthode

Initializes the instance.
protected Initialize ( ISystemContext context ) : void
context ISystemContext
Résultat void

InitializeOptionalChildren() protected méthode

Initializes the any option children defined for the instance.
protected InitializeOptionalChildren ( ISystemContext context ) : void
context ISystemContext
Résultat void

LockConditionState() public méthode

Initializes the type with its default attribute values.
public LockConditionState ( NodeState parent ) : System
parent NodeState
Résultat System

RequestLock() public méthode

Requests the lock.
public RequestLock ( ISystemContext context ) : void
context ISystemContext
Résultat void

SetLock() public méthode

Grants the lock.
public SetLock ( ISystemContext context ) : void
context ISystemContext
Résultat void

SetPermission() public méthode

Specifies the thumbprint of a certificate that has access to the lock.
public SetPermission ( string thumbprint ) : void
thumbprint string
Résultat void

Unlock() public méthode

Releases the lock.
public Unlock ( ISystemContext context ) : void
context ISystemContext
Résultat void