|
이 문서는 수동으로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오.
|
번역
원본
|
ParameterInfo 클래스
네임스페이스: System.Reflection
어셈블리: mscorlib(mscorlib.dll)
ParameterInfo 형식에서는 다음과 같은 멤버를 노출합니다.
| 이름 | 설명 | |
|---|---|---|
![]() ![]() ![]() | Attributes | |
![]() ![]() ![]() | DefaultValue | |
![]() | IsIn | |
![]() ![]() ![]() | IsOptional | |
![]() ![]() ![]() | IsOut | |
![]() ![]() ![]() | Member | |
![]() ![]() ![]() | MetadataToken | |
![]() ![]() ![]() | Name | |
![]() ![]() ![]() | ParameterType | |
![]() ![]() ![]() | Position | |
![]() | RawDefaultValue |
| 이름 | 설명 | |
|---|---|---|
![]() ![]() ![]() | Equals(Object) | Windows Phone용 Silverlight에서 이 멤버는 Equals(Object)에 의해 재정의됩니다. XNA Framework에서 이 멤버는 Equals(Object)에 의해 재정의됩니다. |
![]() ![]() ![]() | Finalize | |
![]() ![]() ![]() | GetCustomAttributes(Boolean) | |
![]() ![]() ![]() | GetCustomAttributes(Type, Boolean) | |
![]() ![]() ![]() | GetHashCode | Windows Phone용 Silverlight에서 이 멤버는 GetHashCode()에 의해 재정의됩니다. XNA Framework에서 이 멤버는 GetHashCode()에 의해 재정의됩니다. |
![]() ![]() ![]() | GetType | |
![]() ![]() ![]() | IsDefined | |
![]() ![]() ![]() | MemberwiseClone | |
![]() ![]() ![]() | ToString |
참고: |
|---|
using System; using System.Reflection; using System.Runtime.InteropServices; class Example { public static void mymethod(string str1, ref string str2, out string str3, [In] string str4) { // Concatenate str1 to str2, which is ref. str2 += str1; // When mymethod is called, str3 has no value. Give it one. str3 = "new value"; } public static void Demo(System.Windows.Controls.TextBlock outputBlock) { MethodInfo mm = typeof(Example).GetMethod("mymethod"); // Display the method. outputBlock.Text += "MethodInfo.ToString(): " + mm.ToString() + "\n"; // Get and display the attributes for the second parameter. foreach (ParameterInfo param in mm.GetParameters()) { outputBlock.Text += String.Format("Attributes for parameter {0}, \"{1}\": {2} ({3})", param.Position, param.Name, param.Attributes, (int)param.Attributes); if (param.ParameterType.IsByRef) { outputBlock.Text += "; the parameter type is ref\n"; } else { outputBlock.Text += "\n"; } } } } /* This code produces the following output: MethodInfo.ToString(): Void mymethod(System.String, System.String ByRef, System.String ByRef) Attributes for parameter 0, "str1": None (0) Attributes for parameter 1, "str2": None (0); the parameter type is ByRef Attributes for parameter 2, "str3": Out (2); the parameter type is ByRef Attributes for parameter 3, "str4": In (1) */
Silverlight에서 지원되는 운영 체제 및 브라우저에 대한 자세한 내용은 지원되는 운영 체제 및 브라우저을 참조하십시오.

