InjectChunk Class¶
- Namespace
Microsoft.AspNetCore.Mvc.Razor
- Assemblies
- Microsoft.AspNetCore.Mvc.Razor.Host
Constructors¶
-
InjectChunk
(System.String, System.String)¶ Represents the chunk for an @inject statement.
Arguments: - typeName (System.String) – The type name of the property to be injected
- propertyName (System.String) – The member name of the property to be injected.
public InjectChunk(string typeName, string propertyName)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.Razor.InjectChunk.
MemberName
¶ Gets or sets the name of the property to be injected.
Return type: System.String public string MemberName { get; set; }
-
Microsoft.AspNetCore.Mvc.Razor.InjectChunk.
TypeName
¶ Gets or sets the type name of the property to be injected.
Return type: System.String public string TypeName { get; set; }
-