BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_GetConfigString Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the value of a pointer config option as an Ansi string.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public static string BASS_GetConfigString(
	BASSConfig option
)

Parameters

option
Type: Un4seen.BassBASSConfig
The option to get the value of... one of the following (BASSConfig).

Return Value

Type: String
If successful, the value of the requested config option is returned (as an Ansi String). Use BASS_ErrorGetCode to get the error code.
Remarks

Options:

BASS_CONFIG_NET_AGENT"User-Agent" header.
BASS_CONFIG_NET_PROXYProxy server settings.
Other config options may be supported by Add-Ons, see the documentation.

ERROR CODEDescription
BASS_ERROR_ILLPARAMoption is invalid.

Examples

Getting the current user agent header:
VB
Dim userAgent As String = Bass.BASS_GetConfigString(BASSConfig.BASS_CONFIG_NET_AGENT)
If Not (userAgent Is Nothing) Then
  ...
End If
string userAgent = Bass.BASS_GetConfigString(BASSConfig.BASS_CONFIG_NET_AGENT);
if (userAgent != null)
{
  ...
}
See Also

Reference