CSharpCodeWriter.BuildMethodDeclaration 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
- parameters
- IEnumerable<KeyValuePair<String,String>>