Share via


ClientFormsAuthenticationMembershipProvider.ServiceUri 속성

정의

인증 서비스의 URI를 가져오거나 설정합니다.

public:
 property System::String ^ ServiceUri { System::String ^ get(); void set(System::String ^ value); };
public string ServiceUri { get; set; }
member this.ServiceUri : string with get, set
Public Property ServiceUri As String

속성 값

인증 서비스 URI입니다.

예외

이 속성을 가져올 때 애플리케이션 구성 파일에 서비스 URI가 없으며 이 속성이 이전에 설정되지 않은 경우

예제

다음 예제 코드에서는이 속성을 사용 하 여 프로그래밍 방식으로 인증 서비스 위치를 설정 하는 방법에 설명 합니다. 프로그래밍 방식으로 서비스 위치를 설정한 경우 전체 서비스 URI "Authentication_JSON_AppService.axd"를 사용 하 여 항상 종료 됩니다 지정 해야 합니다.

private void SetAuthenticationServiceLocation()
{
    ((ClientFormsAuthenticationMembershipProvider)
        System.Web.Security.Membership.Provider).ServiceUri =
        "http://localhost:55555/AppServices/Authentication_JSON_AppService.axd";
}
Private Sub SetAuthenticationServiceLocation()
    CType(System.Web.Security.Membership.Provider,  _
        ClientFormsAuthenticationMembershipProvider).ServiceUri = _
        "http://localhost:55555/AppServices/Authentication_JSON_AppService.axd"
End Sub

설명

설정할 수 있습니다는 ServiceUri 애플리케이션 구성 파일에서 애플리케이션 코드에서 속성 값이 일반적으로 설정 됩니다. 이 코드를 다시 컴파일하지 않고도 서비스 위치를 변경할 수 있습니다.

적용 대상

추가 정보