MetadataDisplayInfoProvider.CollectionToString<T> Method (IMetadataOrderedCollection<T>, Boolean)
Gets a string representation of the specified IMetadataOrderedCollection<T> object.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Public Function CollectionToString(Of T As {Class, IMetadataObject}) ( _
metadataCollection As IMetadataOrderedCollection(Of T), _
singleLine As Boolean _
) As String
'Usage
Dim instance As MetadataDisplayInfoProvider
Dim metadataCollection As IMetadataOrderedCollection(Of T)
Dim singleLine As Boolean
Dim returnValue As String
returnValue = instance.CollectionToString(metadataCollection, _
singleLine)
public string CollectionToString<T>(
IMetadataOrderedCollection<T> metadataCollection,
bool singleLine
)
where T : class, IMetadataObject
public:
generic<typename T>
where T : ref class, IMetadataObject
virtual String^ CollectionToString(
IMetadataOrderedCollection<T>^ metadataCollection,
bool singleLine
) sealed
abstract CollectionToString :
metadataCollection:IMetadataOrderedCollection<'T> *
singleLine:bool -> string when 'T : not struct and IMetadataObject
override CollectionToString :
metadataCollection:IMetadataOrderedCollection<'T> *
singleLine:bool -> string when 'T : not struct and IMetadataObject
JScript does not support generic types and methods.
Type Parameters
- T
The type of the elements in the collection, constrained to IMetadataObject.
Parameters
- metadataCollection
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataOrderedCollection<T>
The metadata collection to get a string representation for.
- singleLine
Type: System.Boolean
true to indicate to that the string is returned as a single line; otherwise, false.
Return Value
Type: System.String
A string representation of the object.
Implements
IMetadataDisplayInfoProvider.CollectionToString<T>(IMetadataOrderedCollection<T>, Boolean)
See Also
Reference
MetadataDisplayInfoProvider Class
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace