Export (0) Print
Expand All

VCCodeBase.IsCaseSensitive Property 

Gets whether a code element is case-sensitive.

Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in microsoft.visualstudio.vccodemodel.dll)

bool IsCaseSensitive { get; }
/** @property */
boolean get_IsCaseSensitive ()

function get IsCaseSensitive () : boolean

Property Value

true if the code element is case-sensitive; otherwise, false.

See Samples for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

This example iterates through all global VCCodeElement objects in a file and displays the name of those objects that are case-sensitive.

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
End Sub
© 2014 Microsoft