C# 클래스 Helpers, SmallestDotNet

Class Helpers provides some static utility functions.
파일 보기 프로젝트 열기: shanselman/SmallestDotNet 1 사용 예제들

공개 메소드들

메소드 설명
GetJsonPayload ( String UserAgent ) : string
GetUpdateInformation ( string userAgent ) : UpdateInformationResponse
GetUpdateInformation ( string UserAgent, string realVersion ) : UpdateInformationResponse
GetUpdateInformation ( string UserAgent, string realVersion, int releaseKey ) : UpdateInformationResponse
Has10 ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 1.0

Has11 ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 1.1

Has20 ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 2.0

Has30 ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 3.0

Has35 ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 3.5

Has35SP1C ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 3.5 SP1 Client

Has35SP1E ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 3.5 SP1 Full

Has40C ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 40 Client

Has40E ( String UserAgent ) : bool

Determines if the User Agent String indicates .NET 4.0 Full

Has45 ( String UserAgent ) : bool
HasWindows10 ( string userAgent ) : bool

Determines if the User Agent String indicates Windows 8

HasWindows8 ( String userAgent ) : bool

Determines if the User Agent String indicates Windows 8

비공개 메소드들

메소드 설명
CheckDotNet3_5UnSupportedOs ( string UserAgent, string agent, string friendlyName ) : string
CheckVersionLatest ( string realVersion, string &netInfoString ) : bool
DotNet1Message ( bool hasDotNet4 ) : string
DotNet2Message ( bool hasDotNet4 ) : string
DotNet3Message ( bool hasDotNet4 ) : string
DotNet3_5Message ( bool hasSp1, bool hasDotNet4 ) : string
Get40Message ( string UserAgent, string &userMessage ) : bool
GetDotnetVersionFromReleaseKey ( int releaseKey, bool &exact ) : string

Gets the .Net version based on release key.

GetRealVersionMessage ( string &realVersion, int releaseKey ) : string

Gets a message based on the "real" version as determined by the .Net Checker application.

GetWindows8Or10Message ( string userAgent, string &userMessage ) : bool

Gets a message for the Windows 8 OS.

MessageForBrowser ( string browser ) : string
UnknownBrowserMessage ( ) : string

메소드 상세

GetJsonPayload() 공개 정적인 메소드

public static GetJsonPayload ( String UserAgent ) : string
UserAgent String
리턴 string

GetUpdateInformation() 공개 정적인 메소드

public static GetUpdateInformation ( string userAgent ) : UpdateInformationResponse
userAgent string
리턴 UpdateInformationResponse

GetUpdateInformation() 공개 정적인 메소드

public static GetUpdateInformation ( string UserAgent, string realVersion ) : UpdateInformationResponse
UserAgent string
realVersion string
리턴 UpdateInformationResponse

GetUpdateInformation() 공개 정적인 메소드

public static GetUpdateInformation ( string UserAgent, string realVersion, int releaseKey ) : UpdateInformationResponse
UserAgent string
realVersion string
releaseKey int
리턴 UpdateInformationResponse

Has10() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 1.0
public static Has10 ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has11() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 1.1
public static Has11 ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has20() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 2.0
public static Has20 ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has30() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 3.0
public static Has30 ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has35() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 3.5
public static Has35 ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has35SP1C() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 3.5 SP1 Client
public static Has35SP1C ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has35SP1E() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 3.5 SP1 Full
public static Has35SP1E ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has40C() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 40 Client
public static Has40C ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has40E() 공개 정적인 메소드

Determines if the User Agent String indicates .NET 4.0 Full
public static Has40E ( String UserAgent ) : bool
UserAgent String A User Agent String
리턴 bool

Has45() 공개 정적인 메소드

public static Has45 ( String UserAgent ) : bool
UserAgent String
리턴 bool

HasWindows10() 공개 정적인 메소드

Determines if the User Agent String indicates Windows 8
public static HasWindows10 ( string userAgent ) : bool
userAgent string A User Agent String
리턴 bool

HasWindows8() 공개 정적인 메소드

Determines if the User Agent String indicates Windows 8
public static HasWindows8 ( String userAgent ) : bool
userAgent String A User Agent String
리턴 bool