VBFixedArrayAttribute クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > VBFixedArrayAttribute クラスの意味・解説 

VBFixedArrayAttribute クラス

構造体または非ローカル変数含まれる配列固定長配列として扱うことを示します

名前空間: Microsoft.VisualBasic
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)
構文構文

<AttributeUsageAttribute(AttributeTargets.Field, Inherited:=False, AllowMultiple:=False)>
 _
Public NotInheritable Class
 VBFixedArrayAttribute
    Inherits Attribute
Dim instance As VBFixedArrayAttribute
[AttributeUsageAttribute(AttributeTargets.Field, Inherited=false,
 AllowMultiple=false)] 
public sealed class VBFixedArrayAttribute :
 Attribute
[AttributeUsageAttribute(AttributeTargets::Field, Inherited=false,
 AllowMultiple=false)] 
public ref class VBFixedArrayAttribute sealed
 : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Field, Inherited=false,
 AllowMultiple=false) */ 
public final class VBFixedArrayAttribute extends
 Attribute
AttributeUsageAttribute(AttributeTargets.Field, Inherited=false,
 AllowMultiple=false) 
public final class VBFixedArrayAttribute extends
 Attribute
解説解説
使用例使用例
Structure Book
    <VBFixedArray(4)> Public Chapter() As
 Integer
End Structure

Sub WriteData()
    Dim FileNum As Integer
 = FreeFile()
    Dim MyBook As Book
    ReDim MyBook.Chapter(4)
    ' Add code to populate the array.
    MyBook.Chapter(0) = 1
    MyBook.Chapter(1) = 2
    MyBook.Chapter(2) = 3
    MyBook.Chapter(3) = 4
    MyBook.Chapter(4) = 5
    ' Write the array to a file.
    FileOpen(FileNum, "C:\testfile", OpenMode.Binary,
 _
             OpenAccess.Write, OpenShare.Default)
    FilePut(FileNum, MyBook) ' Write data.
    FileClose(FileNum)
End Sub
メモメモ

VBFixedArrayAttribute は、情報提供目的としており、ストレージ割り当て行いません。この属性目的は、VBFixedArrayAttribute認識するメソッドまたは API 呼び出しによる構造体および非ローカル変数含まれている配列使用方法変更することです。この属性可変長配列固定長配列変換するものではないこと、また、Dim ステートメントまたは ReDim ステートメント使用して配列ストレージ割り当てる必要があることに注意してください

継承階層継承階層
System.Object
   System.Attribute
    Microsoft.VisualBasic.VBFixedArrayAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
VBFixedArrayAttribute メンバ
Microsoft.VisualBasic 名前空間
MarshalAsAttribute
その他の技術情報
VBFixedArrayAttribute クラス
Visual Basic における属性
VBFixedArrayAttribute クラス メンバ
VBFixedStringAttribute クラス
ComClassAttribute クラス
XML シリアル化および SOAP シリアル化
FileGet 関数
FilePut 関数
FileOpen 関数



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「VBFixedArrayAttribute クラス」の関連用語

VBFixedArrayAttribute クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



VBFixedArrayAttribute クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS