VCLanguageManager.IsReservedName 方法

确定如果指定的文件名称是有效的 C++ 保留名称。

命名空间:  Microsoft.VisualStudio.VCCodeModel
程序集:  Microsoft.VisualStudio.VCCodeModel(在 Microsoft.VisualStudio.VCCodeModel.dll 中)

语法

声明
Function IsReservedName ( _
    bstrName As String, _
    bManaged As Boolean _
) As Boolean
bool IsReservedName(
    string bstrName,
    bool bManaged
)
bool IsReservedName(
    [InAttribute] String^ bstrName, 
    [InAttribute] bool bManaged
)
abstract IsReservedName : 
        bstrName:string * 
        bManaged:bool -> bool
function IsReservedName(
    bstrName : String, 
    bManaged : boolean
) : boolean

参数

  • bstrName
    类型:String

    要验证的名称。

  • bManaged
    类型:Boolean

    可选。 如果它是 Visual C++,则为 true,否则此值是 false。

返回值

类型:Boolean
C++ 保留名称的 true;否则,为 false。

.NET Framework 安全性

请参阅

参考

VCLanguageManager 接口

Microsoft.VisualStudio.VCCodeModel 命名空间