C# 클래스 NDG.Convertors.ServerUrlDisplayConverter

Converter which changes full server address (with name of servlets and protocol) to short URL (containing only IP address and port number) and converts back from short URL to full address.
상속: IValueConverter
파일 보기 프로젝트 열기: nokiadatagathering/WP7-Official

공개 메소드들

메소드 설명
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Changes URL address from full address to short address by removing protocol and name of servlet.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Changes URL address from short address to full address by adding protocol and name of servlet.

메소드 상세

Convert() 공개 메소드

Changes URL address from full address to short address by removing protocol and name of servlet.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object Full URL address (with protocol and servlet name).
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
리턴 object

ConvertBack() 공개 메소드

Changes URL address from short address to full address by adding protocol and name of servlet.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object Short URL address (only IP address and port number).
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
리턴 object