/// <summary> /// Deprecated Method for adding a new object to the Policies EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPolicies(Policy policy) { base.AddObject("Policies", policy); }
/// <summary> /// Create a new Policy object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="isDefault">Initial value of the IsDefault property.</param> /// <param name="modified">Initial value of the Modified property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="overrideDefaultPolicy">Initial value of the OverrideDefaultPolicy property.</param> /// <param name="uid">Initial value of the Uid property.</param> /// <param name="agentInfo_AllowComputerAdmin">Initial value of the AgentInfo_AllowComputerAdmin property.</param> /// <param name="agentInfo_AllowLocalAdmin">Initial value of the AgentInfo_AllowLocalAdmin property.</param> /// <param name="agentInfo_InternetServer">Initial value of the AgentInfo_InternetServer property.</param> /// <param name="agentInfo_LocalPassword">Initial value of the AgentInfo_LocalPassword property.</param> /// <param name="agentInfo_LocalServer">Initial value of the AgentInfo_LocalServer property.</param> /// <param name="agentInfo_PolicyPollingInterval">Initial value of the AgentInfo_PolicyPollingInterval property.</param> /// <param name="agentInfo_PollingInterval">Initial value of the AgentInfo_PollingInterval property.</param> public static Policy CreatePolicy(global::System.Int64 id, global::System.String description, global::System.Boolean isDefault, global::System.DateTime modified, global::System.String name, global::System.Boolean overrideDefaultPolicy, global::System.Guid uid, global::System.Boolean agentInfo_AllowComputerAdmin, global::System.Boolean agentInfo_AllowLocalAdmin, global::System.String agentInfo_InternetServer, global::System.String agentInfo_LocalPassword, global::System.String agentInfo_LocalServer, global::System.Int32 agentInfo_PolicyPollingInterval, global::System.Int32 agentInfo_PollingInterval) { Policy policy = new Policy(); policy.Id = id; policy.Description = description; policy.IsDefault = isDefault; policy.Modified = modified; policy.Name = name; policy.OverrideDefaultPolicy = overrideDefaultPolicy; policy.Uid = uid; policy.AgentInfo_AllowComputerAdmin = agentInfo_AllowComputerAdmin; policy.AgentInfo_AllowLocalAdmin = agentInfo_AllowLocalAdmin; policy.AgentInfo_InternetServer = agentInfo_InternetServer; policy.AgentInfo_LocalPassword = agentInfo_LocalPassword; policy.AgentInfo_LocalServer = agentInfo_LocalServer; policy.AgentInfo_PolicyPollingInterval = agentInfo_PolicyPollingInterval; policy.AgentInfo_PollingInterval = agentInfo_PollingInterval; return policy; }