MetadataWorkspace.LoadFromAssembly 方法 (Assembly, Action<String>)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
從指定的組件 (Assembly) 載入中繼資料。
命名空間: System.Data.Entity.Core.Metadata.Edm
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Overridable Sub LoadFromAssembly ( _
assembly As Assembly, _
logLoadMessage As Action(Of String) _
)
'用途
Dim instance As MetadataWorkspace
Dim assembly As [Assembly]
Dim logLoadMessage As Action(Of String)
instance.LoadFromAssembly(assembly, logLoadMessage)
public virtual void LoadFromAssembly(
Assembly assembly,
Action<string> logLoadMessage
)
public:
virtual void LoadFromAssembly(
Assembly^ assembly,
Action<String^>^ logLoadMessage
)
abstract LoadFromAssembly :
assembly:Assembly *
logLoadMessage:Action<string> -> unit
override LoadFromAssembly :
assembly:Assembly *
logLoadMessage:Action<string> -> unit
public function LoadFromAssembly(
assembly : Assembly,
logLoadMessage : Action<String>
)
參數
- assembly
類型:System.Reflection.Assembly
會從其載入中繼資料的組件。
- logLoadMessage
類型:System.Action<String>
記錄載入訊息的委派。