|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
Funciones de elementos
<ItemGroup>
<theItem Include="andromeda;tadpole;cartwheel" />
</ItemGroup>
<Target Name = "go">
<Message Text="IndexOf @(theItem->IndexOf('r'))" />
<Message Text="Replace @(theItem->Replace('tadpole', 'pinwheel'))" />
<Message Text="Length @(theItem->get_Length())" />
<Message Text="Chars @(theItem->get_Chars(2))" />
</Target>
<!--
Output:
IndexOf 3;-1;2
Replace andromeda;pinwheel;cartwheel
Length 9;7;9
Chars d;d;r
-->
|
|
|
|
|---|---|---|
|
|
@(MyItem->Count()) |
|
|
|
@(MyItem->DirectoryName()) |
|
|
|
@(MyItem->Distinct()) |
|
|
|
@(MyItem->DistinctWithCase()) |
|
|
|
@(MyItem->Reverse()) |
|
|
|
@(MyItem->AnyHaveMetadataValue("MetadataName", "MetadataValue")) |
|
|
|
@(MyItem->ClearMetadata()) |
|
|
|
@(MyItem->HasMetadataValue("MetadataName") |
|
|
|
@(MyItem->Metadata("MetadataName")) |
|
|
|
@(MyItem->WithMetadataValue("MetadataName", "MetadataValue") |
|
<ItemGroup>
<TheItem Include="first">
<Plant>geranium</Plant>
</TheItem>
<TheItem Include="second">
<Plant>algae</Plant>
</TheItem>
<TheItem Include="third">
<Plant>geranium</Plant>
</TheItem>
</ItemGroup>
<Target Name="go">
<Message Text="MetaData: @(TheItem->Metadata('Plant'))" />
<Message Text="HasMetadata: @(theItem->HasMetadata('Plant'))" />
<Message Text="WithMetadataValue: @(TheItem->WithMetadataValue('Plant', 'geranium'))" />
<Message Text=" " />
<Message Text="Count: @(theItem->Count())" />
<Message Text="Reverse: @(theItem->Reverse())" />
</Target>
<!--
Output:
MetaData: geranium;algae;geranium
HasMetadata: first;second;third
WithMetadataValue: first;third
Count: 3
Reverse: third;second;first
-->