コード例 #1
0
ファイル: ResponseElement.cs プロジェクト: Condeti/XACML.NET
		/// <summary>
		/// Create a new Response using the Result list provided.
		/// </summary>
		/// <param name="results">The list of Results that will be contained in this Response.</param>
		/// <param name="schemaVersion">The version of the schema that was used to validate.</param>
		public ResponseElement( ResultElement[] results, XacmlVersion schemaVersion )
			: base( XacmlSchema.Context, schemaVersion )
		{
			_results = new ResultCollection();
			if( results != null )
			{
				foreach( ResultElement result in results )
				{
					_results.Add( result );
				}
			}
		}
コード例 #2
0
ファイル: ResultCollection.cs プロジェクト: Condeti/XACML.NET
		/// <summary>
		/// Adds an object to the end of the CollectionBase.
		/// </summary>
		/// <param name="value">The Object to be added to the end of the CollectionBase. </param>
		/// <returns>The CollectionBase index at which the value has been added.</returns>
		public int Add( ResultElement value )  
		{
			return( List.Add( value ) );
		}
コード例 #3
0
 /// <summary>
 /// Adds an object to the end of the CollectionBase.
 /// </summary>
 /// <param name="value">The Object to be added to the end of the CollectionBase. </param>
 /// <returns>The CollectionBase index at which the value has been added.</returns>
 public int Add(ResultElement value)
 {
     return(List.Add(value));
 }