EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) 메서드

정의

결과 형식이 각각 문자열 형식이어야 하는 지정된 인수를 사용하여 정식 'Replace' 함수를 호출하는 DbFunctionExpression을 만듭니다. 이 식의 결과 형식도 string입니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Replace(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ toReplace, System::Data::Common::CommandTrees::DbExpression ^ replacement);
public static System.Data.Common.CommandTrees.DbFunctionExpression Replace (this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression toReplace, System.Data.Common.CommandTrees.DbExpression replacement);
static member Replace : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Replace (stringArgument As DbExpression, toReplace As DbExpression, replacement As DbExpression) As DbFunctionExpression

매개 변수

stringArgument
DbExpression

바꾸기 작업을 수행할 문자열을 지정하는 식입니다.

toReplace
DbExpression

보고되는 문자열을 지정하는 식입니다.

replacement
DbExpression

대체 문자열을 지정하는 식입니다.

반환

보다 새로운 DbFunctionExpression은 의 모든 발생이 로 대체replacement되는 위치에 따라 stringArgument 새 문자열을 toReplace 반환합니다.

예외

stringArgument, toReplace 또는 replacementnull인 경우

stringArgument 또는 toReplacereplacement 잘못되었습니다.

적용 대상