Click or drag to resize

ExtensionsConvertionsToBase64String Method

Converts a string to its equivalent string representation that is encoded with base-64 digits.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static string ToBase64String(
	this string source
)

Parameters

source
Type: SystemString
The string to convert

Return Value

Type: String
The string representation, in base 64

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource string is null
See Also