次の方法で共有


LookupTableMultiLangDataSet.LookupTableMaskStructuresRow.LT_MASK_STRUCT_LENGTH Property

Indicates the number of characters, numerals, or letters in the code mask.

Namespace:  [LookupTable Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/LookupTable.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/LookupTable.asmx?wsdl

Syntax

'Declaration
Public Property LT_MASK_STRUCT_LENGTH As Integer
    Get
    Set
'Usage
Dim instance As LookupTableMultiLangDataSet.LookupTableMaskStructuresRow
Dim value As Integer

value = instance.LT_MASK_STRUCT_LENGTH

instance.LT_MASK_STRUCT_LENGTH = value
public int LT_MASK_STRUCT_LENGTH { get; set; }

Property Value

Type: System.Int32

Remarks

If the full value of a lookup table node is "WA^Redmond", for example, the level 1 node value is "WA", the level 2 node value is "Redmond", and the separator character is the circumflex accent ("^"). The code mask structure for level 1 is two uppercase letters and the code mask structure for level 2 is any number of characters.

If LT_MASK_STRUCT_LENGTH = 0, Project Web App shows the length is Any in the Code mask grid on the Edit Lookup Table page.

To help understand the LT_MASK_STRUCT_LENGTH property, suppose mlut is a LookupTableWS.LookupTableMultiLangDataSet object that contains two lookup table mask structures (LookupTableWS is the name for a reference to the LookupTable Web service).

If you serialize mlut to an XML file, the LookupTableMultiLangDataSet element includes the following child elements.

<LookupTableMaskStructures>
    <LT_UID>1796cacc-5406-4c93-80cb-e7fb1271d32a</LT_UID>
    <LT_MASK_STRUCT_LEVEL>1</LT_MASK_STRUCT_LEVEL>
    <LT_MASK_STRUCT_TYPE_ENUM>1</LT_MASK_STRUCT_TYPE_ENUM>
    <LT_MASK_STRUCT_LENGTH>2</LT_MASK_STRUCT_LENGTH>
</LookupTableMaskStructures>
<LookupTableMaskStructures>
    <LT_UID>1796cacc-5406-4c93-80cb-e7fb1271d32a</LT_UID>
    <LT_MASK_STRUCT_LEVEL>2</LT_MASK_STRUCT_LEVEL>
    <LT_MASK_STRUCT_TYPE_ENUM>3</LT_MASK_STRUCT_TYPE_ENUM>
    <LT_MASK_STRUCT_LENGTH>0</LT_MASK_STRUCT_LENGTH>
</LookupTableMaskStructures>

For a description of how to create a multilanguage lookup table on a test installation of Project Server, see Using the ProjTool Test Application in Project Server 2010. For a code sample that creates a multilanguage lookup table, see CreateLookupTablesMultiLang.

See Also

Reference

LookupTableMultiLangDataSet.LookupTableMaskStructuresRow Class

LookupTableMultiLangDataSet.LookupTableMaskStructuresRow Members

LookupTable Web Service