اقرأ باللغة الإنجليزية

مشاركة عبر


VCCodeModel.IsCaseSensitive Property

Gets a value indicating whether a code element is case-sensitive.

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

Syntax

'إقرار
ReadOnly Property IsCaseSensitive As Boolean
    Get
'الاستخدام
Dim instance As VCCodeModel
Dim value As Boolean

value = instance.IsCaseSensitive
bool IsCaseSensitive { get; }
property bool IsCaseSensitive {
    bool get ();
}
abstract IsCaseSensitive : bool
function get IsCaseSensitive () : boolean

Property Value

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

Implements

CodeModel2.IsCaseSensitive

Remarks

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

Examples

This example iterates through all global VCCodeElement 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
    Next
End Sub

.NET Framework Security

See Also

Reference

VCCodeModel Interface

VCCodeModel Members

IsCaseSensitive Overload

Microsoft.VisualStudio.VCCodeModel Namespace