We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

VCCodeParameter.IsCaseSensitive Property

Determines if a code element is case-sensitive.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

bool IsCaseSensitive { get; }

Property Value

Type: Boolean
true if a code element is case-sensitive; otherwise, false.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

This example iterates through all global VCCodeModel objects in a file and displays the names of case-sensitive objects.

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