DscClassCache.ImportScriptKeywordsFromModule Method

Definition

Overloads

ImportScriptKeywordsFromModule(PSModuleInfo, String, String)

Imports configuration keywords from a .psm1 file.

ImportScriptKeywordsFromModule(PSModuleInfo, String, String, Dictionary<String,ScriptBlock>)

Imports configuration keywords from a .psm1 file.

ImportScriptKeywordsFromModule(PSModuleInfo, String, String)

Imports configuration keywords from a .psm1 file.

public:
 static bool ImportScriptKeywordsFromModule(System::Management::Automation::PSModuleInfo ^ module, System::String ^ resourceName, [Runtime::InteropServices::Out] System::String ^ % schemaFilePath);
public static bool ImportScriptKeywordsFromModule (System.Management.Automation.PSModuleInfo module, string resourceName, out string schemaFilePath);
static member ImportScriptKeywordsFromModule : System.Management.Automation.PSModuleInfo * string * string -> bool
Public Shared Function ImportScriptKeywordsFromModule (module As PSModuleInfo, resourceName As String, ByRef schemaFilePath As String) As Boolean

Parameters

module
PSModuleInfo
resourceName
String
schemaFilePath
String

Returns

Applies to

ImportScriptKeywordsFromModule(PSModuleInfo, String, String, Dictionary<String,ScriptBlock>)

Imports configuration keywords from a .psm1 file.

public:
 static bool ImportScriptKeywordsFromModule(System::Management::Automation::PSModuleInfo ^ module, System::String ^ resourceName, [Runtime::InteropServices::Out] System::String ^ % schemaFilePath, System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::ScriptBlock ^> ^ functionsToDefine);
public static bool ImportScriptKeywordsFromModule (System.Management.Automation.PSModuleInfo module, string resourceName, out string schemaFilePath, System.Collections.Generic.Dictionary<string,System.Management.Automation.ScriptBlock> functionsToDefine);
static member ImportScriptKeywordsFromModule : System.Management.Automation.PSModuleInfo * string * string * System.Collections.Generic.Dictionary<string, System.Management.Automation.ScriptBlock> -> bool
Public Shared Function ImportScriptKeywordsFromModule (module As PSModuleInfo, resourceName As String, ByRef schemaFilePath As String, functionsToDefine As Dictionary(Of String, ScriptBlock)) As Boolean

Parameters

module
PSModuleInfo
resourceName
String
schemaFilePath
String
functionsToDefine
Dictionary<String,ScriptBlock>

Returns

Applies to