Пример #1
0
        /// <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;
        }
Пример #2
0
 /// <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));
 }