CSharpCodeWriter.BuildMethodDeclaration 方法

定义

重载

BuildMethodDeclaration(String, String, String)
BuildMethodDeclaration(String, String, String, IEnumerable<KeyValuePair<String,String>>)

BuildMethodDeclaration(String, String, String)

public:
 Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWritingScope BuildMethodDeclaration(System::String ^ accessibility, System::String ^ returnType, System::String ^ name);
public Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope BuildMethodDeclaration (string accessibility, string returnType, string name);
member this.BuildMethodDeclaration : string * string * string -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope
Public Function BuildMethodDeclaration (accessibility As String, returnType As String, name As String) As CSharpCodeWritingScope

参数

accessibility
String
returnType
String
name
String

返回

适用于

BuildMethodDeclaration(String, String, String, IEnumerable<KeyValuePair<String,String>>)

public:
 Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWritingScope BuildMethodDeclaration(System::String ^ accessibility, System::String ^ returnType, System::String ^ name, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ parameters);
public Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope BuildMethodDeclaration (string accessibility, string returnType, string name, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> parameters);
member this.BuildMethodDeclaration : string * string * string * seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope
Public Function BuildMethodDeclaration (accessibility As String, returnType As String, name As String, parameters As IEnumerable(Of KeyValuePair(Of String, String))) As CSharpCodeWritingScope

参数

accessibility
String
returnType
String
name
String

返回

适用于