OptionalAttribute クラス
パラメータが省略できることを示します。
この型のすべてのメンバの一覧については、OptionalAttribute メンバ を参照してください。
System.Object
System.Attribute
System.Runtime.InteropServices.OptionalAttribute
<AttributeUsage(AttributeTargets.Parameter)>
NotInheritable Public Class OptionalAttribute Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class OptionalAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Parameter)]
public __gc __sealed class OptionalAttribute : public Attribute
[JScript]
public
AttributeUsage(AttributeTargets.Parameter)
class OptionalAttribute extends Attribute
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
この属性は、パラメータに適用できます。
省略できるパラメータは、すべての言語でサポートされているわけではありません。
必要条件
名前空間: System.Runtime.InteropServices
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
アセンブリ: Mscorlib (Mscorlib.dll 内)