常用方法
常用方法
常用方法
常用方法
/// <summary> /// Returns information about a particular service on the remote machine. /// </summary> /// <param name="serviceName">Name of the service.</param> /// <returns> /// A <see cref="RemoteServiceInfo" /> instance describing the service if /// it exists, <c>null</c> if the requested service is not installed. /// </returns> public RemoteServiceInfo GetServiceStatus(string serviceName) { lock (syncLock) { Verify(); return(remote.GetServiceStatus(serviceName)); } }