Redigera

Dela via


ProjectPreferences.Get Method

Definition

Overloads

Get(String, Boolean)

Get bool from Project Preferences. If no entry found, then create new entry with provided defaultValue

Get(String, Int32)

Get int from Project Preferences. If no entry found, then create new entry with provided defaultValue

Get(String, Single)

Get float from Project Preferences. If no entry found, then create new entry with provided defaultValue

Get(String, String)

Get string from Project Preferences. If no entry found, then create new entry with provided defaultValue

Get(String, Boolean)

Get bool from Project Preferences. If no entry found, then create new entry with provided defaultValue

public:
 static bool Get(System::String ^ key, bool defaultValue);
public static bool Get (string key, bool defaultValue);
static member Get : string * bool -> bool
Public Shared Function Get (key As String, defaultValue As Boolean) As Boolean

Parameters

key
String
defaultValue
Boolean

Returns

Applies to

Get(String, Int32)

Get int from Project Preferences. If no entry found, then create new entry with provided defaultValue

public:
 static int Get(System::String ^ key, int defaultValue);
public static int Get (string key, int defaultValue);
static member Get : string * int -> int
Public Shared Function Get (key As String, defaultValue As Integer) As Integer

Parameters

key
String
defaultValue
Int32

Returns

Applies to

Get(String, Single)

Get float from Project Preferences. If no entry found, then create new entry with provided defaultValue

public:
 static float Get(System::String ^ key, float defaultValue);
public static float Get (string key, float defaultValue);
static member Get : string * single -> single
Public Shared Function Get (key As String, defaultValue As Single) As Single

Parameters

key
String
defaultValue
Single

Returns

Applies to

Get(String, String)

Get string from Project Preferences. If no entry found, then create new entry with provided defaultValue

public:
 static System::String ^ Get(System::String ^ key, System::String ^ defaultValue);
public static string Get (string key, string defaultValue);
static member Get : string * string -> string
Public Shared Function Get (key As String, defaultValue As String) As String

Parameters

key
String
defaultValue
String

Returns

Applies to