Returns the fully qualified type name of this instance.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Function ToString( _
ByVal format As String _
) As String |
Parameters
- format
Example
Library/Library.Test/TestDbGuid.cs
C# | Copy Code |
---|
Guid test = Guid.NewGuid();
Assert.AreEqual(test.ToString(), new DbGuid(test).ToString());
Assert.AreEqual(test.ToString("N"), new DbGuid(test).ToString("N"));
Assert.AreEqual(test.ToString("B", CultureInfo.InvariantCulture), new DbGuid(test).ToString("B", CultureInfo.InvariantCulture)); |
VB.NET | Copy Code |
---|
Dim test As Guid = Guid.NewGuid()
Assert.AreEqual(test.ToString(), New DbGuid(test).ToString())
Assert.AreEqual(test.ToString("N"), New DbGuid(test).ToString("N"))
Assert.AreEqual(test.ToString("B", CultureInfo.InvariantCulture), New DbGuid(test).ToString("B", CultureInfo.InvariantCulture)) |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also