/// <summary>Refreshes the share properties.</summary> public void Refresh() { //Retrieve new values NetworkShareInfo info = NetworkShare.GetShare(Name); //Copy them m_strDescription = info.Description; m_strPath = info.Path; m_Type = info.ShareType; m_UsersMax = info.MaximumUsers; }
/// <summary>Gets the current status of the share.</summary> /// <returns>The status of the share.</returns> public NetworkShareStatus GetStatus() { return(NetworkShare.GetShareStatus(m_strMachine, m_strName)); }