Class ApplicationInfoBuilder
Contains methods for configuring the application metadata. Application metadata may be used in LaunchDarkly analytics or other product features.
Inherited Members
Namespace: LaunchDarkly.Sdk
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public sealed class ApplicationInfoBuilder
Constructors
ApplicationInfoBuilder()
Declaration
public ApplicationInfoBuilder()
Methods
ApplicationId(string)
Sets a unique identifier representing the application where the LaunchDarkly SDK is running. This can be specified as any string value as long as it only uses the following characters: ASCII letters, ASCII digits, period, hyphen, underscore. A string containing any other characters will be ignored.
Declaration
public ApplicationInfoBuilder ApplicationId(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
string | applicationId | the application identifier |
Returns
Type | Description |
---|---|
ApplicationInfoBuilder | the builder |
ApplicationName(string)
Sets a human friendly name for the application in which the LaunchDarkly SDK is running.
This can be specified as any string value as long as it only uses the following characters: ASCII letters, ASCII digits, period, hyphen, underscore. A string containing any other characters will be ignored.
Declaration
public ApplicationInfoBuilder ApplicationName(string applicationName)
Parameters
Type | Name | Description |
---|---|---|
string | applicationName | the human friendly name |
Returns
Type | Description |
---|---|
ApplicationInfoBuilder | the builder |
ApplicationVersion(string)
Sets a unique identifier representing the version of the application where the LaunchDarkly SDK is running.
This can be specified as any string value as long as it only uses the following characters: ASCII letters, ASCII digits, period, hyphen, underscore. A string containing any other characters will be ignored.
Declaration
public ApplicationInfoBuilder ApplicationVersion(string applicationVersion)
Parameters
Type | Name | Description |
---|---|---|
string | applicationVersion | the application version |
Returns
Type | Description |
---|---|
ApplicationInfoBuilder | the builder |
ApplicationVersionName(string)
Sets a human friendly name for the version of the application in which the LaunchDarkly SDK is running.
This can be specified as any string value as long as it only uses the following characters: ASCII letters, ASCII digits, period, hyphen, underscore. A string containing any other characters will be ignored.
Declaration
public ApplicationInfoBuilder ApplicationVersionName(string applicationVersionName)
Parameters
Type | Name | Description |
---|---|---|
string | applicationVersionName | the human friendly version name |
Returns
Type | Description |
---|---|
ApplicationInfoBuilder | the builder |
Build()
Declaration
public ApplicationInfo Build()
Returns
Type | Description |
---|---|
ApplicationInfo | a new ApplicationInfo from the current build properties. |