Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IContentItem.GetFileName Method

Returns the name of the file for the specified `IFileProperty` after `SetFilePropertyValue` is called.

string GetFileName(
IBaseProperty fileProperty
);

#### Parameters

fileProperty
  The file property; cannot be `null`.

#### Return Value

The name of the file for the specified file property.

#### Remarks

See code sample in setFilePropertyValue on how to retrieve and update value for an `IFileProperty`.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The content item has already been removed.
ArgumentException | The item does not contain the specified property.

#### See Also

IContentItem Interface | Plumtree.Remote.PRC.Content.Item Namespace