コード例 #1
0
 /// <summary>
 /// Create a new Computer object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="uid">Initial value of the Uid property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="modified">Initial value of the Modified property.</param>
 /// <param name="isLicensed">Initial value of the IsLicensed property.</param>
 /// <param name="timeStamp">Initial value of the TimeStamp property.</param>
 /// <param name="visible">Initial value of the Visible property.</param>
 /// <param name="warrantyStatus">Initial value of the WarrantyStatus property.</param>
 /// <param name="localPolicyId">Initial value of the LocalPolicyId property.</param>
 /// <param name="internetPolicyId">Initial value of the InternetPolicyId property.</param>
 /// <param name="policyStatus">Initial value of the PolicyStatus property.</param>
 /// <param name="remoteMode">Initial value of the RemoteMode property.</param>
 /// <param name="forceRemoteMode">Initial value of the ForceRemoteMode property.</param>
 /// <param name="avBasesVersion">Initial value of the AvBasesVersion property.</param>
 /// <param name="beingUninstalled">Initial value of the BeingUninstalled property.</param>
 public static Computer CreateComputer(global::System.Int64 id, global::System.Guid uid, global::System.String name, global::System.DateTime created, global::System.DateTime modified, global::System.Boolean isLicensed, global::System.Byte[] timeStamp, global::System.Boolean visible, global::System.Int16 warrantyStatus, global::System.Int64 localPolicyId, global::System.Int64 internetPolicyId, global::System.Int16 policyStatus, global::System.Boolean remoteMode, global::System.Boolean forceRemoteMode, global::System.String avBasesVersion, global::System.Boolean beingUninstalled)
 {
     Computer computer = new Computer();
     computer.Id = id;
     computer.Uid = uid;
     computer.Name = name;
     computer.Created = created;
     computer.Modified = modified;
     computer.IsLicensed = isLicensed;
     computer.TimeStamp = timeStamp;
     computer.Visible = visible;
     computer.WarrantyStatus = warrantyStatus;
     computer.LocalPolicyId = localPolicyId;
     computer.InternetPolicyId = internetPolicyId;
     computer.PolicyStatus = policyStatus;
     computer.RemoteMode = remoteMode;
     computer.ForceRemoteMode = forceRemoteMode;
     computer.AvBasesVersion = avBasesVersion;
     computer.BeingUninstalled = beingUninstalled;
     return computer;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Computers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToComputers(Computer computer)
 {
     base.AddObject("Computers", computer);
 }