Ejemplo n.º 1
0
        private StorageSpaceFolderShare CreateShareEntity(PSObject psObject)
        {
            var result = new StorageSpaceFolderShare();

            result.Name    = Convert.ToString(GetPSObjectProperty(psObject, "Name"));
            result.Path    = Convert.ToString(GetPSObjectProperty(psObject, "Path"));
            result.UncPath = string.Format("\\\\{0}\\{1}", GetFqdn(), result.Name);

            return(result);
        }
Ejemplo n.º 2
0
        private StorageSpaceFolderShare CreateShareEntity(PSObject psObject)
        {
            var result = new StorageSpaceFolderShare();

            result.Name = Convert.ToString(GetPSObjectProperty(psObject, "Name"));
            result.Path = Convert.ToString(GetPSObjectProperty(psObject, "Path"));
            result.UncPath = string.Format("\\\\{0}\\{1}", GetFqdn(), result.Name);

            return result;
        }