Org.IdentityConnectors.Framework.Common.Objects.OperationOptionsBuilder.Build C# (CSharp) Method

Build() public method

Creates the OperationOptions.
public Build ( ) : OperationOptions
return OperationOptions
        public OperationOptions Build()
        {
            return new OperationOptions(_options);
        }

Usage Example

        public void TestSearchByteAttributes()
        {
            OperationOptionsBuilder builder = new OperationOptionsBuilder();
            builder.AttributesToGet = new[] { "attributeByte", "attributeByteMultivalue", "attributeByteArray", "attributeByteArrayMultivalue" };
            var co = GetFacade().GetObject(Test, new Uid("UID01"), builder.Build());
            Assert.IsNotNull(co);

            IList<Object> value = co.GetAttributeByName("attributeByte").Value;
            Assert.AreEqual(1, value.Count);
            Assert.IsInstanceOf(typeof(byte), value[0]);

            value = co.GetAttributeByName("attributeByteMultivalue").Value;
            Assert.AreEqual(2, value.Count);
            Assert.IsInstanceOf(typeof(byte), value[0]);
            Assert.IsInstanceOf(typeof(byte), value[1]);

            value = co.GetAttributeByName("attributeByteArray").Value;
            Assert.AreEqual(1, value.Count);
            Assert.IsInstanceOf(typeof(byte[]), value[0]);

            value = co.GetAttributeByName("attributeByteArrayMultivalue").Value;
            Assert.AreEqual(2, value.Count);
            Assert.IsInstanceOf(typeof(byte[]), value[0]);
            Assert.IsInstanceOf(typeof(byte[]), value[1]);
        }
All Usage Examples Of Org.IdentityConnectors.Framework.Common.Objects.OperationOptionsBuilder::Build