この型は SecurityCriticalAttribute 属性を持っているため、使用は .NET Framework for Silverlight クラス ライブラリでの内部用に限定されます。アプリケーション コードでこの型の任意のメンバーを使用すると、MethodAccessException 例外がスローされます。
名前空間: Microsoft.TeamFoundation.Common.Internal
アセンブリ: Microsoft.TeamFoundation.Common (Microsoft.TeamFoundation.Common.dll 内)
構文
'宣言
Public Shared Function OpenService ( _
serviceControlManagerHandle As ServiceHandle, _
serviceName As String, _
desiredAccess As NativeMethods.ServiceAccessRights _
) As ServiceHandle
public static ServiceHandle OpenService(
ServiceHandle serviceControlManagerHandle,
string serviceName,
NativeMethods.ServiceAccessRights desiredAccess
)
パラメーター
- serviceControlManagerHandle
型 : Microsoft.TeamFoundation.Common.Internal.ServiceHandle
- serviceName
型 : System.String
戻り値
型 : Microsoft.TeamFoundation.Common.Internal.ServiceHandle