~~NOTRANS~~ ====== OpcConditionExtension Members ====== **Namespace:** Opc.UaFx.Client \\ **Assemblies:** Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll \\ The [[Opc.UaFx.Client.OpcConditionExtension|OpcConditionExtension]] type exposes the following members. ===== Methods ===== ==== AddComment(OpcCondition, OpcClient, Byte[], OpcText) ==== <panel> Applies a comment to the state reported by an event notification which can be identified by the ''eventId'' on the ''condition'' specified using the further specified ''client''. **C#** \\ <code csharp> public static void AddComment(this OpcCondition condition, OpcClient client, byte[] eventId, OpcText comment) </code> \\ **Parameters** ''condition'' [[Opc.UaFx.OpcCondition|OpcCondition]] \\ The [[Opc.UaFx.OpcCondition|OpcCondition]] its 'AddComment' method node is to be called.\\ ''client'' [[Opc.UaFx.Client.OpcClient|OpcClient]] \\ The [[Opc.UaFx.Client.OpcClient|OpcClient]] to use to call the method.\\ ''eventId'' [[https://docs.microsoft.com/en-us/dotnet/api/system.byte|Byte]][] \\ The identifier which identifies the particular event notification its reported state for the ''condition'' is to be commented.\\ ''comment'' [[Opc.UaFx.OpcText|OpcText]] \\ The text to apply on the condition state.\\ \\ \\ **Exceptions** [[https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception|ArgumentNullException]] \\ The ''condition'', ''client'' or ''eventId'' is a null reference (Nothing in Visual Basic).\\ [[Opc.UaFx.OpcException|OpcException]] \\ The call of the method node failed (see exception details for more information).\\ </panel> ==== AddComment(OpcCondition, OpcClient, OpcText) ==== <panel> Applies a comment to the state reported by an event notification which can be identified by the [[Opc.UaFx.OpcEventMembers#EventId|EventId]] of the ''condition'' specified using the further specified ''client''. **C#** \\ <code csharp> public static void AddComment(this OpcCondition condition, OpcClient client, OpcText comment) </code> \\ **Parameters** ''condition'' [[Opc.UaFx.OpcCondition|OpcCondition]] \\ The [[Opc.UaFx.OpcCondition|OpcCondition]] its 'AddComment' method node is to be called.\\ ''client'' [[Opc.UaFx.Client.OpcClient|OpcClient]] \\ The [[Opc.UaFx.Client.OpcClient|OpcClient]] to use to call the method.\\ ''comment'' [[Opc.UaFx.OpcText|OpcText]] \\ The text to apply on the condition state.\\ \\ \\ **Exceptions** [[https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception|ArgumentNullException]] \\ The ''condition'' or ''client'' is a null reference (Nothing in Visual Basic).\\ [[Opc.UaFx.OpcException|OpcException]] \\ The call of the method node failed (see exception details for more information).\\ </panel> ==== Disable(OpcCondition, OpcClient) ==== <panel> Changes the condition state to 'Disabled' of the ''condition'' specified using the further specified ''client''. **C#** \\ <code csharp> public static void Disable(this OpcCondition condition, OpcClient client) </code> \\ **Parameters** ''condition'' [[Opc.UaFx.OpcCondition|OpcCondition]] \\ The [[Opc.UaFx.OpcCondition|OpcCondition]] its 'Disable' method node is to be called.\\ ''client'' [[Opc.UaFx.Client.OpcClient|OpcClient]] \\ The [[Opc.UaFx.Client.OpcClient|OpcClient]] to use to call the method.\\ \\ \\ **Exceptions** [[https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception|ArgumentNullException]] \\ The ''condition'' or ''client'' is a null reference (Nothing in Visual Basic).\\ [[Opc.UaFx.OpcException|OpcException]] \\ The call of the method node failed (see exception details for more information).\\ </panel> ==== Enable(OpcCondition, OpcClient) ==== <panel> Changes the condition state to 'Enabled' of the ''condition'' specified using the further specified ''client''. **C#** \\ <code csharp> public static void Enable(this OpcCondition condition, OpcClient client) </code> \\ **Parameters** ''condition'' [[Opc.UaFx.OpcCondition|OpcCondition]] \\ The [[Opc.UaFx.OpcCondition|OpcCondition]] its 'Enable' method node is to be called.\\ ''client'' [[Opc.UaFx.Client.OpcClient|OpcClient]] \\ The [[Opc.UaFx.Client.OpcClient|OpcClient]] to use to call the method.\\ \\ \\ **Exceptions** [[https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception|ArgumentNullException]] \\ The ''condition'' or ''client'' is a null reference (Nothing in Visual Basic).\\ [[Opc.UaFx.OpcException|OpcException]] \\ The call of the method node failed (see exception details for more information).\\ </panel>