Share via


VBFixedArrayAttribute Constructor

Initializes the value of the Bounds property.

Public Sub New( _
   ByVal UpperBound1 As Integer, _
   )
' -or-
Public Sub New( _
   ByVal UpperBound1 As Integer, _
   ByVal UpperBound2 As Integer, _
   )

Parameters

  • UpperBound1
    Initializes the value of upper field, which represents the size of the first dimension of the array.

  • UpperBound2
    Initializes the value of upper field, which represents the size of the second dimension of the array.

Remarks

The constructor runs when the VBFixedArrayAttribute attribute is applied to an array.

Requirements

Namespace: Microsoft.VisualBasic

**Class:**VBFixedArrayAttribute

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Concepts

Attributes Used in Visual Basic

Object Lifetime: How Objects Are Created and Destroyed

Reference

VBFixedStringAttribute Class

ComClassAttribute Class

MarshalAsAttribute

Other Resources

Attributes in Visual Basic