VCCodeFunction.IsCaseSensitive 属性

定义

获取一个值,该值指示代码元素是否区分大小写。

public:
 property bool IsCaseSensitive { bool get(); };
public:
 property bool IsCaseSensitive { bool get(); };
[System.Runtime.InteropServices.DispId(513)]
public bool IsCaseSensitive { [System.Runtime.InteropServices.DispId(513)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(513)>]
[<get: System.Runtime.InteropServices.DispId(513)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.IsCaseSensitive : bool
Public ReadOnly Property IsCaseSensitive As Boolean

属性值

Boolean

true 如果代码元素区分大小写,则为; 否则为。否则为 false

属性

示例

此示例将遍历文件中的所有全局 VCCodeElement 对象,并显示区分大小写的对象的名称。

Sub CaseSensitiveObjects()  
    Dim vcCM As VCCodeModel  
    Dim vcCodeElement As VCCodeElement  
    vcCM = DTE.Solution.Item(1).CodeModel  
    For Each vcCodeElement In vcCM.CodeElements  
        If (vcCodeElement.IsCaseSensitive) Then  
            MsgBox(vcCodeElement.Name + " is case-sensitive.")  
        End If  
    Next  
End Sub  

注解

有关如何编译和运行此示例的信息,请参阅 如何:编译 Visual C++ 代码模型扩展性的示例代码

适用于