Share via


ContentFormatterArgument.Value Property

Gets or sets the value of the content formatter argument.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Property Value As String
public string Value { get; set; }
public:
property String^ Value {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Value ()

/** @property */
public void set_Value (String value)
public function get Value () : String

public function set Value (value : String)

Property Value

A String of up to 4000 characters that specifies the value of the content formatter argument.

Remarks

The distributor passes the argument name and value to the content formatter's Initialize method.

Example

The following examples show how to define content formatter arguments and add them to a content formatter:

ContentFormatterArgument contentFormatterArgument1 = 
    new ContentFormatterArgument(
    contentFormatter, "XsltBaseDirectoryPath");
contentFormatterArgument1.Value = @"C:\NS\Full\XSLFiles";
ContentFormatterArgument contentFormatterArgument2 = 
    new ContentFormatterArgument(contentFormatter, "XsltFileName");
contentFormatterArgument2.Value = "NoOp.xslt";

// Add arguments to content formatter
contentFormatter.ContentFormatterArguments.Add(
    contentFormatterArgument1);
contentFormatter.ContentFormatterArguments.Add(
    contentFormatterArgument2);
Dim contentFormatterArgument1 As ContentFormatterArgument = _
    New ContentFormatterArgument(contentFormatter, _
    "XsltBaseDirectoryPath")
contentFormatterArgument1.Value = "C:\NS\Full\XSLFiles"
Dim contentFormatterArgument2 As ContentFormatterArgument = _
    New ContentFormatterArgument(contentFormatter, _
    "XsltFileName")
contentFormatterArgument2.Value = "NoOp.xslt"

' Add arguments to content formatter
contentFormatter.ContentFormatterArguments.Add( _
    contentFormatterArgument1)
contentFormatter.ContentFormatterArguments.Add( _
    contentFormatterArgument2)

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

ContentFormatterArgument Class
ContentFormatterArgument Members
Microsoft.SqlServer.Management.Nmo Namespace

Other Resources

Configuring Content Formatters
Value Element for ContentFormatter/Arguments/Argument (ADF)
Argument Element for ContentFormatter/Arguments (ADF)