Share via


MpuSqlClrWrapper.GetVolumeFreeSpaceInKB Method

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets the amount of free space, in kilobytes (KB), of the volume of the specified file.

Namespace:  Microsoft.SqlServer.Management.Shared.MpuSql
Assembly:  Microsoft.SqlServer.MpuSqlClrWrapper (in Microsoft.SqlServer.MpuSqlClrWrapper.dll)

Syntax

'Declaration
<SqlFunctionAttribute> _
Public Shared Function GetVolumeFreeSpaceInKB ( _
    fileName As String _
) As SqlInt64
'Usage
Dim fileName As String
Dim returnValue As SqlInt64

returnValue = MpuSqlClrWrapper.GetVolumeFreeSpaceInKB(fileName)
[SqlFunctionAttribute]
public static SqlInt64 GetVolumeFreeSpaceInKB(
    string fileName
)
[SqlFunctionAttribute]
public:
static SqlInt64 GetVolumeFreeSpaceInKB(
    String^ fileName
)
[<SqlFunctionAttribute>]
static member GetVolumeFreeSpaceInKB : 
        fileName:string -> SqlInt64 
public static function GetVolumeFreeSpaceInKB(
    fileName : String
) : SqlInt64

Parameters

  • fileName
    Type: System.String
    A String containing the name of the specified file.

Return Value

Type: System.Data.SqlTypes.SqlInt64
An integer value specifying the amount of free space, in KB, of the volume.