Sdl.Web.Tridion/ContentManager/TcmUri.cs
/// <summary>
/// Returns a string that represents the current <see cref="TcmUri"/>.
/// </summary>
/// <returns>A string that represents the current <see cref="TcmUri"/></returns>
Returns a string that represents the current .
Returns a string that represents the current .
public override string ToString()
        {
            StringBuilder formattedUri = new StringBuilder();
            formattedUri.Append(_tcmPrefix);
            formattedUri.Append(":");
            formattedUri.Append(_publicationId);
            formattedUri.Append("-");
            formattedUri.Append(_itemId);
            if (_itemType != ItemType.Component)
            {
                formattedUri.Append("-");
                formattedUri.Append((int) _itemType);
            }
            if (_version != null)
            {
                formattedUri.Append("-");
                formattedUri.Append(_versionSeparator);
                formattedUri.Append(_version);
            }
            return formattedUri.ToString();
        }
public override string ToString ( ) { StringBuilder formattedUri = new StringBuilder ( ) ; formattedUri . Append ( _tcmPrefix ) ; formattedUri . Append ( " " ) ; formattedUri . Append ( _publicationId ) ; formattedUri . Append ( " " ) ; formattedUri . Append ( _itemId ) ; if ( _itemType != ItemType . Component ) { formattedUri . Append ( " " ) ; formattedUri . Append ( ( int ) _itemType ) ; } if ( _version != null ) { formattedUri . Append ( " " ) ; formattedUri . Append ( _versionSeparator ) ; formattedUri . Append ( _version ) ; } return formattedUri . ToString ( ) ; }
Returns a string that represents the current .
Returns a string that represents the current .
A string that represents the current
A string that represents the current