DefaultCharSetAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)
構文
<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Module, Inherited:=False)> _ Public NotInheritable Class DefaultCharSetAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Module, Inherited=false)] public sealed class DefaultCharSetAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Module, Inherited=false)] public ref class DefaultCharSetAttribute sealed : public Attribute
DefaultCharSetAttribute 属性をアセンブリ レベルまたはモジュール レベルで適用して、ユーザーが指定した名前付き引数 CharSet を含まない DllImportAttribute の任意の呼び出しに対して CharSet 値を設定します。
ユーザーが指定した名前付き引数 CharSet は、DefaultCharSetAttribute の設定をオーバーライドします。
メモ |
---|
この属性を認識するのは、C# コンパイラと Visual Basic コンパイラだけです。C++ コンパイラでは使用されません。 |
既定の CharSet 値を Ansi から Auto に変更するコード例を次に示します。
using System.Runtime.InteropServices;
[module: DefaultCharSet(CharSet.Auto)]
// …
System.Attribute
System.Runtime.InteropServices.DefaultCharSetAttribute
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
Weblioに収録されているすべての辞書からDefaultCharSetAttribute クラスを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からDefaultCharSetAttribute クラス を検索
- DefaultCharSetAttribute クラスのページへのリンク