VCCodeProperty.IsCaseSensitive 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定代码元素是否区分大小写。
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
属性值
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++ 代码模型扩展性的示例代码 。