Opc.Ua.InstanceStateSnapshot.IsTypeOf C# (CSharp) Method

IsTypeOf() public method

Returns true if the snapshort is an instance of the specified type.
public IsTypeOf ( FilterContext context, Opc.Ua.NodeId typeDefinitionId ) : bool
context FilterContext The context to use when checking the type definition.
typeDefinitionId Opc.Ua.NodeId The type of the instance.
return bool
        public bool IsTypeOf(FilterContext context, NodeId typeDefinitionId)
        {
            if (!NodeId.IsNull(typeDefinitionId))
            {
                if (!context.TypeTree.IsTypeOf(m_typeDefinitionId, typeDefinitionId))
                {
                    return false;
                }
            }

            return true;
        }