C# 클래스 Microsoft.Tools.WindowsInstaller.ReinstallModesConverter

Provides conversion between the ReinstallModes enumeration and string short form.
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: heaths/psmsi 1 사용 예제들

공개 메소드들

메소드 설명
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Returns True when sourceType is a String.

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Returns True when destinationType is a String.

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Converts a String in the short form like "omus" to a ReinstallModes enumeration.

ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object

Converts a ReinstallModes to a short form String like "omus".

비공개 메소드들

메소드 설명
ReinstallModesConverter ( ) : System
TryParse ( string value, ReinstallModes &mode ) : bool

메소드 상세

CanConvertFrom() 공개 메소드

Returns True when sourceType is a String.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext Additional context for conversion.
sourceType System.Type The type of the source object.
리턴 bool

CanConvertTo() 공개 메소드

Returns True when destinationType is a String.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext Additional context for conversion.
destinationType System.Type The type of the destination object.
리턴 bool

ConvertFrom() 공개 메소드

Converts a String in the short form like "omus" to a ReinstallModes enumeration.
The short form string contains invalid characters.
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext Additional context for conversion.
culture System.Globalization.CultureInfo The culture to use for conversion.
value object The value to convert.
리턴 object

ConvertTo() 공개 메소드

Converts a ReinstallModes to a short form String like "omus".
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext Additional context for conversion.
culture System.Globalization.CultureInfo The culture to use for conversion.
value object The to convert.
destinationType System.Type The type of the destination object.
리턴 object