TOCTitle | Title | ms:assetid | ms:mtpsurl |
---|---|---|---|
AddModule Method (ModuleInfoGroup, String, Type, String[]) |
ModuleInfoGroupExtensions.AddModule Method (ModuleInfoGroup, String, Type, String[]) (Microsoft.Practices.Prism.Modularity) |
M:Microsoft.Practices.Prism.Modularity.ModuleInfoGroupExtensions.AddModule(Microsoft.Practices.Prism.Modularity.ModuleInfoGroup,System.String,System.Type,System.String[]) |
addmodule-mthd-moduleinfogroup-str-type-str.md |
Adds a new module that is statically referenced to the specified module info group.
Namespace: Microsoft.Practices.Prism.Modularity
Assembly: Microsoft.Practices.Prism.Composition (in Microsoft.Practices.Prism.Composition.dll)
Version: 5.0.0.0 (5.0.0.0)
public static ModuleInfoGroup AddModule(
this ModuleInfoGroup moduleInfoGroup,
Type moduleType,
params string[] dependsOn
)
moduleInfoGroup
Type: Microsoft.Practices.Prism.Modularity.ModuleInfoGroup
The group where to add the module info in.
moduleType
Type: System.Type
The type for the module. This type should be a descendant of IModule.
dependsOn
Type: arraySystem.String[]
The names for the modules that this module depends on.
Adds a new module that is statically referenced to the specified module info group.
Namespace: Microsoft.Practices.Prism.Modularity
Assembly: Microsoft.Practices.Prism.Composition (in Microsoft.Practices.Prism.Composition.dll)
Version: 5.0.0.0 (5.0.0.0)
'Declaration
<ExtensionAttribute>
Public Shared Function AddModule (
moduleInfoGroup As ModuleInfoGroup,
moduleType As Type,
ParamArray dependsOn As String()
) As ModuleInfoGroup
moduleInfoGroup
Type: Microsoft.Practices.Prism.Modularity.ModuleInfoGroup
The group where to add the module info in.
moduleType
Type: System.Type
The type for the module. This type should be a descendant of IModule.
dependsOn
Type: arraySystem.String()
The names for the modules that this module depends on.
Type: ModuleInfoGroup
Returns the instance of the passed in module info group, to provide a fluid interface.
In Visual Basic and C#, you can call this method as an instance method on any object of type ModuleInfoGroup. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ModuleInfoGroupExtensions Class
ModuleInfoGroupExtensions Members
AddModule Overload
Microsoft.Practices.Prism.Modularity Namespace