Hi again,
I try that below code (also yours). I succesfuly added volume but I can't see on list resources. Is there any wrong that code?
Maybe I have to add volume detail-statistics pollers?
Objs.PropBag_Volume pbv = new Objs.PropBag_Volume();
pbv.Caption = "Physical Memory";
pbv.FullName = "Physical Memory";
pbv.Icon = "RAM.gif";
pbv.Index = "1";
pbv.NodeID = "8";
pbv.PollInterval = "120";
pbv.RediscoveryInterval = "30";
pbv.Responding = "Y";
pbv.StatCollection = "15";
pbv.StatusIcon = "Up.gif";
pbv.Status = "1";
pbv.VolumeDescription = "Physical Memory";
pbv.VolumePercentUsed = DBNull.Value.ToString();
pbv.VolumeSize = "0";
pbv.VolumeSpaceAvailable = DBNull.Value.ToString();
pbv.VolumeSpaceUsed = DBNull.Value.ToString();
pbv.VolumeType = "RAM";
pbv.VolumeTypeID = "2";
pbv.VolumeResponding = "Y";
string vl = vpc.AddVolume(pbv);