DefaultParameterValueAttribute クラス
アセンブリ: System (system.dll 内)

<AttributeUsageAttribute(AttributeTargets.Parameter)> _ Public NotInheritable Class DefaultParameterValueAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Parameter)] public sealed class DefaultParameterValueAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Parameter)] public ref class DefaultParameterValueAttribute sealed : public Attribute

DefaultParameterValueAttribute 属性により、既定のパラメータをサポートする言語で既定のパラメータ値を指定できます。この属性をコードに適用すると、既定のパラメータをサポートする言語は、指定した値を既定のパラメータとして使用できるようになります。
DefaultParameterValueAttribute は、この機能をサポートしない言語には既定のパラメータのサポートを追加しません。たとえば、既定のパラメータをサポートしない C# で記述したメソッドで DefaultParameterValueAttribute を使用しても、C# からメソッドを呼び出して既定のパラメータを使用することはできません。既定のパラメータは、この機能をサポートする C++ などの言語でメソッドを呼び出す場合にのみ使用できます。
DefaultParameterValueAttribute は、COM 相互運用インターフェイスのメソッドに対して既定のパラメータを指定する場合に特に便利です。


System.Attribute
System.Runtime.InteropServices.DefaultParameterValueAttribute


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に収録されているすべての辞書からDefaultParameterValueAttribute クラスを検索する場合は、下記のリンクをクリックしてください。

- DefaultParameterValueAttribute クラスのページへのリンク