AutoCompleteAttribute.Value 속성

정의

COM+에서 AutoComplete 옵션 설정을 나타내는 값을 가져옵니다.

public:
 property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean

속성 값

COM+에서 true가 활성화되면 AutoComplete이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예제

다음 코드 예제에서는 값을 가져옵니다는 AutoComplete 특성의 Value 속성입니다.

[AutoComplete(false)]
public void AutoCompleteAttribute_Value()
{
    // Get information on the member.
    System.Reflection.MemberInfo[] memberinfo =
        this.GetType().GetMember(
        "AutoCompleteAttribute_Value");

    // Get the AutoCompleteAttribute applied to the member.
    AutoCompleteAttribute attribute =
        (AutoCompleteAttribute)System.Attribute.GetCustomAttribute(
        memberinfo[0],
        typeof(AutoCompleteAttribute),
        false);

    // Display the value of the attribute's Value property.
    Console.WriteLine("AutoCompleteAttribute.Value: {0}", attribute.Value);
}
<AutoComplete(False)>  _
Public Sub AutoCompleteAttribute_Value() 
    ' Get information on the member.
    Dim memberinfo As System.Reflection.MemberInfo() = Me.GetType().GetMember("AutoCompleteAttribute_Value")
    
    ' Get the AutoCompleteAttribute applied to the member.
    Dim attribute As AutoCompleteAttribute = CType(System.Attribute.GetCustomAttribute(memberinfo(0), GetType(AutoCompleteAttribute), False), AutoCompleteAttribute)
    
    ' Display the value of the attribute's Value property.
    MsgBox("AutoCompleteAttribute.Value: " & attribute.Value)

End Sub

적용 대상