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

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

StringFreezingAttribute クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

ネイティブ イメージ ジェネレータ (Ngen.exe) を使用してネイティブ イメージ作成するときにリテラル文字列固定します。このクラス継承できません。

名前空間: System.Runtime.CompilerServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

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

StringFreezingAttributeアセンブリ適用する方法次のコード例示します

Imports System.Runtime.CompilerServices

<Assembly: StringFreezingAttribute()> 

Module Program

    Dim frozenString = "This is a frozen string
 after Ngen is run."

    Sub Main(ByVal args() As
 String)
        Console.WriteLine("The FixedAddressValueTypeAttribute
 attribute was applied.")
    End Sub


End Module
using System;
using System.Runtime.CompilerServices;

[assembly :StringFreezingAttribute()]

class Program
{
    
    string frozenString = "This is a frozen string
 after Ngen is run.";
    
    static void Main(string[]
 args)
    {

        Console.WriteLine("The StringFreezingAttribute attribute was applied.");

    }
}
継承階層継承階層
System.Object
   System.Attribute
    System.Runtime.CompilerServices.StringFreezingAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
StringFreezingAttribute メンバ
System.Runtime.CompilerServices 名前空間



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

辞書ショートカット

すべての辞書の索引

「StringFreezingAttribute クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS