从外部源加载模型元素,例如持久化模型。
命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Function LoadExternals ( _
    input As TextReader, _
    fileName As String, _
    logicalSourceName As String, _
    externalPartsSubstitution As IList(Of String), _
    suppressErrorsForMissingDependencies As Boolean _
) As IList(Of IModelElement)
public IList<IModelElement> LoadExternals(
    TextReader input,
    string fileName,
    string logicalSourceName,
    IList<string> externalPartsSubstitution,
    bool suppressErrorsForMissingDependencies
)
public:
IList<IModelElement^>^ LoadExternals(
    TextReader^ input, 
    String^ fileName, 
    String^ logicalSourceName, 
    IList<String^>^ externalPartsSubstitution, 
    bool suppressErrorsForMissingDependencies
)
member LoadExternals : 
        input:TextReader * 
        fileName:string * 
        logicalSourceName:string * 
        externalPartsSubstitution:IList<string> * 
        suppressErrorsForMissingDependencies:bool -> IList<IModelElement> 
public function LoadExternals(
    input : TextReader, 
    fileName : String, 
    logicalSourceName : String, 
    externalPartsSubstitution : IList<String>, 
    suppressErrorsForMissingDependencies : boolean
) : IList<IModelElement>
参数
- input
 类型:System.IO.TextReader
 从其中读取模型的 TextReader。
- fileName
 类型:System.String
 从其中读取模型的文件的名称。
- logicalSourceName
 类型:System.String
 模型的逻辑源名称。
- externalPartsSubstitution
 类型:System.Collections.Generic.IList<String>
 将附加到对象名称的第 3 部分和第 4 部分名称前的对象范围名称,例如 [数据库].[架构].[表]。
- suppressErrorsForMissingDependencies
 类型:System.Boolean
 指示是应忽略由于缺少依赖项而出现的错误,还是应让这些错误导致处理停止。
返回值
类型:System.Collections.Generic.IList<IModelElement>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。