ItemSpecificationBuilder.AddFieldSpecification Method (Fieldtypes, String, String)

MultiArchive SDK .NET

Collapse image Expand Image Copy image CopyHover image

[This is preliminary documentation and is subject to change.]

Method that creates a FieldSpecification object with the specified arguments and adds it to the list of FieldSpecifications.

Namespace: MultiArchive.SDK.ServiceUtils
Assembly: MultiArchive.SDK (in MultiArchive.SDK.dll) Version: 1.2.30.413 (1.2.30.413)

Syntax

C#
public void AddFieldSpecification(
	Fieldtypes fieldType,
	string maFieldType,
	string fieldValue
)
Visual Basic
Public Sub AddFieldSpecification ( 
	fieldType As Fieldtypes,
	maFieldType As String,
	fieldValue As String
)
Visual C++
public:
void AddFieldSpecification(
	Fieldtypes fieldType, 
	String^ maFieldType, 
	String^ fieldValue
)

Parameters

fieldType
Type: Fieldtypes

[Missing <param name="fieldType"/> documentation for "M:MultiArchive.SDK.ServiceUtils.ItemSpecificationBuilder.AddFieldSpecification(MultiArchive.WSProxy.Proxies.Fieldtypes,System.String,System.String)"]

maFieldType
Type: System..::..String

[Missing <param name="maFieldType"/> documentation for "M:MultiArchive.SDK.ServiceUtils.ItemSpecificationBuilder.AddFieldSpecification(MultiArchive.WSProxy.Proxies.Fieldtypes,System.String,System.String)"]

fieldValue
Type: System..::..String

[Missing <param name="fieldValue"/> documentation for "M:MultiArchive.SDK.ServiceUtils.ItemSpecificationBuilder.AddFieldSpecification(MultiArchive.WSProxy.Proxies.Fieldtypes,System.String,System.String)"]

Examples

C#  Copy imageCopy
class TestClass
{
    public static void Main()
    {
        ItemSpecificationBuilder myBuilder = new ItemSpecificationBuilder();
        myBuilder.AddFieldSpecification(fieldtypes.numeric, "urn:multiarchive:fieldType:A42:itemtype:CUSTOMER_LETTER:CUSTNO", "1100");
    }
}

Exceptions

Exception Condition
System..::..ArgumentException Thows an ArgumentException if either maFieldType or fieldValue are missing or empty, or if the fieldValue does not correspond to the fieldType specified.

See Also