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
- assembly
Type: System.Reflection.Assembly
The assembly.
- rootVirtualPath
Type: System.String
The root virtual path.
Exceptions
Exception | Condition |
---|---|
ArgumentException | rootVirtualPath is null reference (Nothing in Visual Basic) or empty. |