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

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

VBFixedStringAttribute クラス

文字列固定長として扱う必要があることを示します

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

<AttributeUsageAttribute(AttributeTargets.Field, Inherited:=False, AllowMultiple:=False)>
 _
Public NotInheritable Class
 VBFixedStringAttribute
    Inherits Attribute
Dim instance As VBFixedStringAttribute
[AttributeUsageAttribute(AttributeTargets.Field, Inherited=false,
 AllowMultiple=false)] 
public sealed class VBFixedStringAttribute
 : Attribute
[AttributeUsageAttribute(AttributeTargets::Field, Inherited=false,
 AllowMultiple=false)] 
public ref class VBFixedStringAttribute sealed
 : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Field, Inherited=false,
 AllowMultiple=false) */ 
public final class VBFixedStringAttribute extends
 Attribute
AttributeUsageAttribute(AttributeTargets.Field, Inherited=false,
 AllowMultiple=false) 
public final class VBFixedStringAttribute extends
 Attribute
解説解説

詳細については、Visual Basicトピック「VBFixedStringAttribute クラス」を参照してください

Visual Basic 文字列は、既定可変長になってます。この属性は、FileGetFilePut など、固定長配列を必要とする Visual Basic ファイル入力関数および出力関数使用する場合に便利です。

使用例使用例
Structure Person
    Public ID As Integer
    Public MonthlySalary As Decimal
    Public LastReviewDate As Long
    <VBFixedString(15)> Public FirstName As
 String
    <VBFixedString(15)> Public LastName As
 String
    <VBFixedString(15)> Public Title As
 String
    <VBFixedString(150)> Public ReviewComments As
 String
End Structure
メモメモ

VBFixedStringAttribute情報提供するものであり、可変長文字列から固定長文字列への変換には使用できません。この属性目的は、VBFixedStringAttribute認識するメソッドまたは API 呼び出しにおける、構造体および非ローカル変数含まれている配列使用方法変更することです。この属性は文字列の実際長さ変更するものではありません。

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


このページでは「.NET Framework クラス ライブラリ リファレンス」からVBFixedStringAttribute クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からVBFixedStringAttribute クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からVBFixedStringAttribute クラスを検索

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

辞書ショートカット

すべての辞書の索引

「VBFixedStringAttribute クラス」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS