AsExtensions.AsBase64 Method (String, Encoding)

Tungsten Suite

AsExtensionsAsBase64 Method (String, Encoding)

Converts a string to Base64 encoding

Namespace:  W
Assembly:  Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
Syntax
C#
public static string AsBase64(
	this string this,
	Encoding encoding
)

Parameters

this
Type: SystemString
The string to convert to Base64 encoding
encoding
Type: System.TextEncoding
The encoding to use

Return Value

Type: String
The Base64 encoded string

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).
See Also