InjectChunk Class

Syntax

public class InjectChunk : Chunk

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.InjectChunk

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

MemberName()

Gets or sets the name of the property to be injected.

Return type:System.String
public string MemberName { get; set; }
TypeName()

Gets or sets the type name of the property to be injected.

Return type:System.String
public string TypeName { get; set; }