DacExtensions.GetCollationString Method (DacPackage)
Gets the collation associated with the specified package.
Namespace: Microsoft.SqlServer.Dac.Extensions
Assembly: Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetCollationString ( _
package As DacPackage _
) As String
'Usage
Dim package As DacPackage
Dim returnValue As String
returnValue = package.GetCollationString()
public static string GetCollationString(
this DacPackage package
)
[ExtensionAttribute]
public:
static String^ GetCollationString(
DacPackage^ package
)
static member GetCollationString :
package:DacPackage -> string
public static function GetCollationString(
package : DacPackage
) : String
Parameters
- package
Type: Microsoft.SqlServer.Dac.DacPackage
The package.
Return Value
Type: System.String
The collation associated with the specified package.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type DacPackage. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.110) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.110).