ArcFM Desktop Developer Guide
NotNullAttribute Class
Members  Example 


Product Availability
Required Licenses
.NET Assembly
Indicates that the value of the marked element could never be null
Object Model
NotNullAttribute Class
Syntax
'Declaration
 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Method Or  _
    AttributeTargets.Property Or  _
    AttributeTargets.Field Or  _
    AttributeTargets.Parameter Or  _
    AttributeTargets.Delegate, 
   AllowMultiple=False, 
   Inherited=True)>
Public NotInheritable Class NotNullAttribute 
   Inherits System.Attribute
'Usage
 
Dim instance As NotNullAttribute
[AttributeUsage(ValidOn=AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Field | 
    AttributeTargets.Parameter | 
    AttributeTargets.Delegate, 
   AllowMultiple=false, 
   Inherited=true)]
public sealed class NotNullAttribute : System.Attribute 
Example
[NotNull] public object Foo() {
  return null; // Warning: Possible 'null' assignment
}
Inheritance Hierarchy

System.Object
   System.Attribute
      Miner.Desktop.DesignerExpress.Annotations.NotNullAttribute

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

NotNullAttribute Members
Miner.Desktop.DesignerExpress.Annotations Namespace

 

 


Send Comment