HostSection.FactoryType Property
Gets or sets the host factory.
Namespace: System.Web.WebPages.Razor.Configuration
Assembly: System.Web.WebPages.Razor (in System.Web.WebPages.Razor.dll)
Syntax
'Declaration
<ConfigurationPropertyAttribute("factoryType", IsRequired := True, DefaultValue := Nothing)> _
Public Property FactoryType As String
Get
Set
'Usage
Dim instance As HostSection
Dim value As String
value = instance.FactoryType
instance.FactoryType = value
[ConfigurationPropertyAttribute("factoryType", IsRequired = true, DefaultValue = null)]
public string FactoryType { get; set; }
[ConfigurationPropertyAttribute(L"factoryType", IsRequired = true, DefaultValue = nullptr)]
public:
property String^ FactoryType {
String^ get ();
void set (String^ value);
}
[<ConfigurationPropertyAttribute("factoryType", IsRequired = true, DefaultValue = null)>]
member FactoryType : string with get, set
function get FactoryType () : String
function set FactoryType (value : String)
Property Value
Type: System.String
The host factory.
Remarks
This attribute determines which factory to use as the host factory. The default host factory, WebRazorHostFactory, returns WebRazorHostFactory for files in the App_Code directory and returns WebPageRazorHost for all other requests.