Share via


ApplicationPart Constructor

Initializes a new instance of the ApplicationPart class by using the specified assembly and root virtual path.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Sub New ( _
    assembly As Assembly, _
    rootVirtualPath As String _
)
'Usage
Dim assembly As [Assembly]
Dim rootVirtualPath As String 

Dim instance As New ApplicationPart(assembly, _
    rootVirtualPath)
public ApplicationPart(
    Assembly assembly,
    string rootVirtualPath
)
public:
ApplicationPart(
    Assembly^ assembly, 
    String^ rootVirtualPath
)
new : 
        assembly:Assembly * 
        rootVirtualPath:string -> ApplicationPart
public function ApplicationPart(
    assembly : Assembly, 
    rootVirtualPath : String
)

Parameters

Exceptions

Exception Condition
ArgumentException

rootVirtualPath is null reference (Nothing in Visual Basic) or empty.

See Also

Reference

ApplicationPart Class

System.Web.WebPages Namespace