QuickOPC User's Guide and Reference
ResourceDescriptor Class
Members 



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace : ResourceDescriptor Class
Contains data defining a resource (mainly, its URL string).
Object Model
ResourceDescriptor ClassResourceDescriptor Class
Syntax
'Declaration
 
<CLSCompliantAttribute(True)>
<ComDefaultInterfaceAttribute(OpcLabs.BaseLib.ComTypes._ResourceDescriptor)>
<ComVisibleAttribute(True)>
<GuidAttribute("72FE6C7A-D30C-4F39-88FF-C8779DF4B966")>
<TypeConverterAttribute(OpcLabs.BaseLib.Implementation.ResourceDescriptorConverter)>
<ValueControlAttribute("OpcLabs.BaseLib.Forms.Common.ObjectSerializationControl, OpcLabs.BaseLibForms, Version=5.72.465.1, Culture=neutral, PublicKeyToken=6faddca41dacb409", 
   DefaultReadWrite=False, 
   Export=True, 
   PageId=10001)>
<SerializableAttribute()>
Public Class ResourceDescriptor 
   Inherits Info
   Implements OpcLabs.BaseLib.Aliasing.ComTypes._Aliasable, OpcLabs.BaseLib.Aliasing.IAliasable, OpcLabs.BaseLib.ComTypes._Info, OpcLabs.BaseLib.ComTypes._Object2, OpcLabs.BaseLib.ComTypes._ResourceDescriptor, System.ComponentModel.INotifyPropertyChanged, System.ICloneable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable 
'Usage
 
Dim instance As ResourceDescriptor
[CLSCompliant(true)]
[ComDefaultInterface(OpcLabs.BaseLib.ComTypes._ResourceDescriptor)]
[ComVisible(true)]
[Guid("72FE6C7A-D30C-4F39-88FF-C8779DF4B966")]
[TypeConverter(OpcLabs.BaseLib.Implementation.ResourceDescriptorConverter)]
[ValueControl("OpcLabs.BaseLib.Forms.Common.ObjectSerializationControl, OpcLabs.BaseLibForms, Version=5.72.465.1, Culture=neutral, PublicKeyToken=6faddca41dacb409", 
   DefaultReadWrite=false, 
   Export=true, 
   PageId=10001)]
[Serializable()]
public class ResourceDescriptor : Info, OpcLabs.BaseLib.Aliasing.ComTypes._Aliasable, OpcLabs.BaseLib.Aliasing.IAliasable, OpcLabs.BaseLib.ComTypes._Info, OpcLabs.BaseLib.ComTypes._Object2, OpcLabs.BaseLib.ComTypes._ResourceDescriptor, System.ComponentModel.INotifyPropertyChanged, System.ICloneable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable  
[CLSCompliant(true)]
[ComDefaultInterface(OpcLabs.BaseLib.ComTypes._ResourceDescriptor)]
[ComVisible(true)]
[Guid("72FE6C7A-D30C-4F39-88FF-C8779DF4B966")]
[TypeConverter(OpcLabs.BaseLib.Implementation.ResourceDescriptorConverter)]
[ValueControl("OpcLabs.BaseLib.Forms.Common.ObjectSerializationControl, OpcLabs.BaseLibForms, Version=5.72.465.1, Culture=neutral, PublicKeyToken=6faddca41dacb409", 
   DefaultReadWrite=false, 
   Export=true, 
   PageId=10001)]
[Serializable()]
public ref class ResourceDescriptor : public Info, OpcLabs.BaseLib.Aliasing.ComTypes._Aliasable, OpcLabs.BaseLib.Aliasing.IAliasable, OpcLabs.BaseLib.ComTypes._Info, OpcLabs.BaseLib.ComTypes._Object2, OpcLabs.BaseLib.ComTypes._ResourceDescriptor, System.ComponentModel.INotifyPropertyChanged, System.ICloneable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable  
Remarks

Modifying properties other than UrlString or Url is only guaranteed to yield a correct result when a valid URL is already set in the ResourceDescriptor; further restrictions also apply.

An implicit conversion from a System.String containing the URL of the resource exists. It is therefore common to specify ResourceDescriptor-s as strings, relying on the implicit conversion.

Inheritance Hierarchy

System.Object
   OpcLabs.BaseLib.Object2
      OpcLabs.BaseLib.Info
         OpcLabs.BaseLib.ResourceDescriptor
            OpcLabs.BaseLib.EndpointDescriptor

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also