Export (0) Print
Expand All

ContentFormatterArgument Class

SQL Server 2005

Represents one name/value pair for a content formatter initialization argument.

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

public sealed class ContentFormatterArgument : NamedSmoObject
public final class ContentFormatterArgument extends NamedSmoObject
public final class ContentFormatterArgument extends NamedSmoObject

Each content formatter can have initialization arguments. For information about the built-in XSLT content formatter's arguments, see Defining the XSLT Content Formatter.

The distributor passes initialization arguments to the content formatter's Initialize method.


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);

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.

Development Platforms

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

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft