MetaModel.GetActionPath(String, String, Object) 메서드

정의

특정 테이블과 연결된 작업 경로를 반환합니다.

public:
 System::String ^ GetActionPath(System::String ^ tableName, System::String ^ action, System::Object ^ row);
public:
 virtual System::String ^ GetActionPath(System::String ^ tableName, System::String ^ action, System::Object ^ row);
public string GetActionPath(string tableName, string action, object row);
member this.GetActionPath : string * string * obj -> string
abstract member GetActionPath : string * string * obj -> string
override this.GetActionPath : string * string * obj -> string
Public Function GetActionPath (tableName As String, action As String, row As Object) As String

매개 변수

tableName
String

작업이 적용되는 테이블의 이름입니다.

action
String

테이블에 적용할 작업입니다.

row
Object

테이블의 단일 데이터 행을 나타내는 개체입니다. row 는 쿼리 문자열 매개 변수에 대한 값을 제공하는 데 사용됩니다.

반품

경로와 연결된 URL입니다.

예제

다음 예제에서는 메서드를 사용하여 GetActionPath(String, String, Object) 지정된 테이블에 대한 라우팅 경로(URL 확인)를 평가하는 방법을 보여 줍니다. 전체 예제는 다음을 참조하세요 MetaModel.

// Get the registered action path.
public string EvaluateActionPath()
{
    string tableName = LinqDataSource1.TableName;
    
    MetaModel model = GetModel(false);

    string actionPath =
        model.GetActionPath(tableName,
            System.Web.DynamicData.PageAction.List, GetDataItem());
    return actionPath;
}
' Get the registered action path.
Public Function EvaluateActionPath() As String
    Dim tableName As String = LinqDataSource1.TableName

    Dim model As MetaModel = GetModel(False)

    Dim actionPath As String = model.GetActionPath(tableName, System.Web.DynamicData.PageAction.List, GetDataItem())
    Return actionPath
End Function

설명

경로는 테이블 이름과 작업의 조합에 따라 결정됩니다.

적용 대상