다음을 통해 공유


ParamArrayAttribute 클래스

해당 메서드의 호출 시 여러 가지 인수를 사용할 수 있음을 나타냅니다. 이 클래스는 상속될 수 없습니다.

네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
<ComVisibleAttribute(True)> _
<AttributeUsageAttribute(AttributeTargets.Parameter, Inherited:=True, AllowMultiple:=False)> _
Public NotInheritable Class ParamArrayAttribute
    Inherits Attribute
‘사용 방법
Dim instance As ParamArrayAttribute
[ComVisibleAttribute(true)] 
[AttributeUsageAttribute(AttributeTargets.Parameter, Inherited=true, AllowMultiple=false)] 
public sealed class ParamArrayAttribute : Attribute
[ComVisibleAttribute(true)] 
[AttributeUsageAttribute(AttributeTargets::Parameter, Inherited=true, AllowMultiple=false)] 
public ref class ParamArrayAttribute sealed : public Attribute
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Parameter, Inherited=true, AllowMultiple=false) */ 
public final class ParamArrayAttribute extends Attribute
ComVisibleAttribute(true) 
AttributeUsageAttribute(AttributeTargets.Parameter, Inherited=true, AllowMultiple=false) 
public final class ParamArrayAttribute extends Attribute

설명

매개 변수 배열에는 여러 가지 인수를 임의로 지정할 수 있습니다. 이때 매개 변수 배열은 형식 매개 변수 목록의 마지막 매개 변수이어야 하며 일차원 배열이어야 합니다. 매개 변수 배열에서는 다음과 같은 두 가지 방법으로 메서드에 인수를 지정할 수 있습니다.

  • 매개 변수 배열 형식으로의 암시적 변환이 가능한 형식의 단일 식. 매개 변수 배열은 값 매개 변수로 작동합니다.

  • 0개 이상의 인수. 각 인수는 매개 변수 배열 요소의 형식으로 암시적 변환이 가능한 형식의 식입니다.

특성 사용에 대한 자세한 내용은 특성을 사용하여 메타데이터 확장을 참조하십시오.

상속 계층 구조

System.Object
   System.Attribute
    System.ParamArrayAttribute

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

ParamArrayAttribute 멤버
System 네임스페이스
Attribute 클래스

기타 리소스

특성을 사용하여 메타데이터 확장