MultiArchive SDK .NET Documentation |
ItemSpecificationBuilder Class |
Members Example See Also Send Feedback |
[This is preliminary documentation and is subject to change.]
This is a service class for handling the creation of ItemSpecifications used when creating new items in MultiArchive.
The usage of this class is to specify some FieldSpecifications and ContentSpecifications and add them to the ItemSpecificationBuilder.
When all have been added, a call to BuildItemSpecification will return an ItemSpecification object, which can be sent as a parameter when calling CreateItem on the ItemService.
The usage of this class is to specify some FieldSpecifications and ContentSpecifications and add them to the ItemSpecificationBuilder.
When all have been added, a call to BuildItemSpecification will return an ItemSpecification object, which can be sent as a parameter when calling CreateItem on the ItemService.
Namespace: MultiArchive.SDK.ServiceUtils
Assembly: MultiArchive.SDK (in MultiArchive.SDK.dll) Version: 1.2.30.413 (1.2.30.413)
Syntax
C# |
---|
public class ItemSpecificationBuilder |
Visual Basic |
---|
Public Class ItemSpecificationBuilder |
Visual C++ |
---|
public ref class ItemSpecificationBuilder |
Examples
C# | Copy |
---|---|
class TestClass { public static void Main() { ItemSpecificationBuilder myBuilder = new ItemSpecificationBuilder(); myBuilder.Archive = "urn:multiarchive:archive:A42"; myBuilder.ItemType = "urn:multiarchive:itemtype:A42:CUSTOMER_LETTER"; myBuilder.AddFieldSpecification("urn:multiarchive:fieldType:A42:itemtype:CUSTOMER_LETTER:CUSTNO", 1100); myBuilder.AddFieldSpecification("urn:multiarchive:fieldType:A42:itemtype:CUSTOMER_LETTER:DATE", DateTime.Now); myBuilder.AddFieldSpecification("urn:multiarchive:fieldType:A42:itemtype:CUSTOMER_LETTER:EMPLOYINIT", "JD"); myBuilder.AddFieldSpecification(fieldtypes.numeric, "urn:multiarchive:fieldType:A42:itemtype:CUSTOMER_LETTER:EMPLOYNO", "337"); myBuilder.AddContentSpecification("Hello World.", "HelloWorld", ".txt", "text/plain"); ItemSpecification itemSpecificationObj = myBuilder.BuildItemSpecification(); } } |