Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of the ContentFormatterArgument class with a ContentFormatter object and a name.
Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
contentFormatter As ContentFormatter, _
name As String _
)
public ContentFormatterArgument (
ContentFormatter contentFormatter,
string name
)
public:
ContentFormatterArgument (
ContentFormatter^ contentFormatter,
String^ name
)
public ContentFormatterArgument (
ContentFormatter contentFormatter,
String name
)
public function ContentFormatterArgument (
contentFormatter : ContentFormatter,
name : String
)
Parameter
- contentFormatter
The ContentFormatter object for the argument.
name
A String of up to 255 characters that specifies the name of the argument.You cannot change the name. Instead, you must remove the argument and then add a new argument that uses the new name.
Hinweise
The distributor passes the argument name and Value to the content formatter's Initialize method.
Beispiel
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)
Plattformen
Entwicklungsplattformen
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Zielplattforme
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Siehe auch
Verweis
ContentFormatterArgument Class
ContentFormatterArgument Members
Microsoft.SqlServer.Management.Nmo Namespace
Andere Ressourcen
Konfigurieren von Inhaltsformatierern
Name Element for ContentFormatter/Arguments/Argument (ADF)
Argument Element for ContentFormatter/Arguments (ADF)