共用方式為


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

傳回

適用於