Skip to content

Latest commit

 

History

History
91 lines (64 loc) · 4.17 KB

addmodule-mthd-moduleinfogroup-str-type-str.md

File metadata and controls

91 lines (64 loc) · 4.17 KB
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

ModuleInfoGroupExtensions.AddModule Method (ModuleInfoGroup, Type, String[])

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)

Syntax

public static ModuleInfoGroup AddModule(
	this ModuleInfoGroup moduleInfoGroup,
	Type moduleType,
	params string[] dependsOn
)

Parameters

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.

ModuleInfoGroupExtensions.AddModule Method (ModuleInfoGroup, Type, String())

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)

Syntax

'Declaration
<ExtensionAttribute> 
Public Shared Function AddModule ( 
	moduleInfoGroup As ModuleInfoGroup,
	moduleType As Type,
	ParamArray dependsOn As String()
) As ModuleInfoGroup

Parameters

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.

Return Value

Type: ModuleInfoGroup
Returns the instance of the passed in module info group, to provide a fluid interface.

Usage Note

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).

See Also

ModuleInfoGroupExtensions Class
ModuleInfoGroupExtensions Members
AddModule Overload
Microsoft.Practices.Prism.Modularity Namespace