语言

DelegateGetSvcBinPathByInstName 委托

定义

表示程序文件根目录,为 SQL Server 服务提供友好实例名称。

public delegate bool DelegateGetSvcBinPathByInstName(System::String ^ sInstanceName, SQL_SVCS Service, StringBuilder ^ sPath, [Runtime::InteropServices::Out] System::UInt32 % pdwSize);
public delegate bool DelegateGetSvcBinPathByInstName(string sInstanceName, SQL_SVCS Service, StringBuilder sPath, out uint pdwSize);
type DelegateGetSvcBinPathByInstName = delegate of string * SQL_SVCS * StringBuilder * uint32 -> bool
Public Delegate Function DelegateGetSvcBinPathByInstName(sInstanceName As String, Service As SQL_SVCS, sPath As StringBuilder, ByRef pdwSize As UInteger) As Boolean 

参数

sInstanceName
String

一个表示实例名称的字符串值。

Service
SQL_SVCS

SQL服务。

sPath
StringBuilder

一个指向缓冲区的指针,用于接收路径。

pdwSize
UInt32

如果缓冲区太小,则返回所需长度。

返回值

一个Boolean值包含了 SQL Server 服务的程序文件根目录,并以友好实例名命名。

适用于