基于名称、类型和格式化程序获取或创建 GraphNodeIdName。
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
Public Shared Function Get ( _
name As String, _
label As String, _
type As Type, _
escapeEmbedded As Boolean _
) As GraphNodeIdName
public static GraphNodeIdName Get(
string name,
string label,
Type type,
bool escapeEmbedded
)
public:
static GraphNodeIdName^ Get(
String^ name,
String^ label,
Type^ type,
bool escapeEmbedded
)
static member Get :
name:string *
label:string *
type:Type *
escapeEmbedded:bool -> GraphNodeIdName
public static function Get(
name : String,
label : String,
type : Type,
escapeEmbedded : boolean
) : GraphNodeIdName
参数
- name
类型:System.String
GraphNodeId 的名称
- label
类型:System.String
显示名称
- type
类型:System.Type
类型。如果之前已存在该名称,则忽略此参数。
- escapeEmbedded
类型:System.Boolean
是否要为此名称对潜在嵌入的 GraphNodeId 进行转义
返回值
类型:Microsoft.VisualStudio.GraphModel.GraphNodeIdName
GraphNodeIdName
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。