Documentation > Services API > ServicesTMF > GetSiteName(Asset,Int32)

GetSiteName

Returns segment of asset path indicated by the nameSegment index

public System.String GetSiteName(Asset,Int32)


Returns

Segment of an AssetPath

Parameters

NameDescriptionType
asset Asset whos path segment will be returned CrownPeak.CMSAPI.Asset
nameSegment index of asset path segment that will be returned System.Int32

Code Example

C#

Sample:

            string siteName = ServicesTMF.GetSiteName(asset, 3);
            

Connect with Crownpeak