共用方式為


VBFixedArrayAttribute.Length Property 

Returns the size of the array.

Public ReadOnly Property Length As Integer

Return Value

Contains an integer that represents the number of elements in the array.

Remarks

The constructor sets this property when the VBFixedArrayAttribute is applied to an array.

Requirements

Namespace: Microsoft.VisualBasic

Class: VBFixedArrayAttribute

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

See Also

Reference

VBFixedStringAttribute Class
ComClassAttribute Class
MarshalAsAttribute Class

Concepts

Attributes Used in Visual Basic

Other Resources

Attributes in Visual Basic