# MFnStringData

## Base Class

MFnData

## Constants

None.

## Static Methods

None.

## Static Attributes

None.

## Constructors

Signature | Parameters | Description
--- | --- | ---
MFnStringData() |  | Default constructor. Returns a new MFnStringData function set with no Maya object attached.
MFnStringData(object) | object - MObject | Returns a new MFnStringData function set, with the specified Maya object attached.

## Object Methods

Signature | Parameters | Returns | Description
--- | --- | --- | ---
create() |  | MObject | Creates a new empty string data object, attaches it to the function set and returns an MObject which references it.
create(str) | str - string | MObject | Creates a new string data object, initializes it with str, attaches it to the function set and returns an MObject which references it.
set(str) | str - string | Reference to self. | Replaces the contents of the encapsulated string with that of str.
string() |  | string | Returns a copy of the encapsulated string.

## Object Attributes

None.

## Sequence Support

None.

## Number Support

None.

## Comparison Support

None.

© 2011 Autodesk, Inc. All rights reserved.