QuickOPC User's Guide and Reference
CanBeNullAttribute Class
Members 



OpcLabs.BaseLib Assembly > JetBrains.Annotations Namespace : CanBeNullAttribute Class
Indicates that the value of marked element could be null sometimes, so the check for null is necessary before its usage
Syntax
'Declaration
 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Method Or  _
    AttributeTargets.Property Or  _
    AttributeTargets.Field Or  _
    AttributeTargets.Parameter Or  _
    AttributeTargets.Delegate, 
   AllowMultiple=False, 
   Inherited=True)>
<ComVisibleAttribute(False)>
Public NotInheritable Class CanBeNullAttribute 
   Inherits System.Attribute
   Implements System.Runtime.InteropServices._Attribute 
'Usage
 
Dim instance As CanBeNullAttribute
[AttributeUsage(ValidOn=AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Field | 
    AttributeTargets.Parameter | 
    AttributeTargets.Delegate, 
   AllowMultiple=false, 
   Inherited=true)]
[ComVisible(false)]
public sealed class CanBeNullAttribute : System.Attribute, System.Runtime.InteropServices._Attribute  
[AttributeUsage(ValidOn=AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Field | 
    AttributeTargets.Parameter | 
    AttributeTargets.Delegate, 
   AllowMultiple=false, 
   Inherited=true)]
[ComVisible(false)]
public ref class CanBeNullAttribute sealed : public System.Attribute, System.Runtime.InteropServices._Attribute  
Inheritance Hierarchy

System.Object
   System.Attribute
      JetBrains.Annotations.CanBeNullAttribute

Requirements

Target Platforms: Windows 7 with SP1, Windows Server 2008 R2 with SP1

See Also

Reference

CanBeNullAttribute Members
JetBrains.Annotations Namespace