CodeGeneratorContext.AddCodeMapping(SourceLocation, Int32, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ce type/membre prend en charge l'infrastructure .NET Framework et n'est pas destiné à être directement utilisé à partir de votre code. Ajoute un nouveau mappage du code généré à la collection.
public int AddCodeMapping(System.Web.Razor.Text.SourceLocation sourceLocation, int generatedCodeStart, int generatedCodeLength);
member this.AddCodeMapping : System.Web.Razor.Text.SourceLocation * int * int -> int
Public Function AddCodeMapping (sourceLocation As SourceLocation, generatedCodeStart As Integer, generatedCodeLength As Integer) As Integer
Paramètres
- sourceLocation
- SourceLocation
Emplacement source du mappage du code généré.
- generatedCodeStart
- Int32
Code de début du mappage du code généré.
- generatedCodeLength
- Int32
Longueur du mappage du code généré.
Retours
Index de collection du mappage du code généré nouvellement ajouté.