ModelStore.CreateIdentifier 方法 (IList<String>, ICollection<String>)
使用所提供的外部部分名称列表、区分大小写的指示和部分名称的集合创建唯一模型标识符。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Function CreateIdentifier ( _
externalParts As IList(Of String), _
parts As ICollection(Of String) _
) As ModelIdentifier
public ModelIdentifier CreateIdentifier(
IList<string> externalParts,
ICollection<string> parts
)
public:
ModelIdentifier^ CreateIdentifier(
IList<String^>^ externalParts,
ICollection<String^>^ parts
)
member CreateIdentifier :
externalParts:IList<string> *
parts:ICollection<string> -> ModelIdentifier
public function CreateIdentifier(
externalParts : IList<String>,
parts : ICollection<String>
) : ModelIdentifier
参数
- externalParts
类型:System.Collections.Generic.IList<String>
外部引用名称部分的 IList<T>。
- parts
类型:System.Collections.Generic.ICollection<String>
部分名称的 ICollection<T>。
返回值
类型:Microsoft.Data.Schema.SchemaModel.ModelIdentifier
一个唯一标识符。如果已存在具有相同部分的标识符,则返回该标识符。
备注
一个名为“dbo.MyTable”的元素将由一个具有“dbo”和“MyTable”的名称部分数组表示。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。