Database.FullTextCatalogs Database.FullTextCatalogs Database.FullTextCatalogs Property

Definition

Gets a collection of FullTextCatalog objects. Each FullTextCatalog object represents a full-text catalog defined on the database.

public:
 property Microsoft::SqlServer::Management::Smo::FullTextCatalogCollection ^ FullTextCatalogs { Microsoft::SqlServer::Management::Smo::FullTextCatalogCollection ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcObject(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcContainerRelationship.ChildContainer, Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcContainerCardinality.ZeroToAny, typeof(Microsoft.SqlServer.Management.Smo.FullTextCatalog))]
public Microsoft.SqlServer.Management.Smo.FullTextCatalogCollection FullTextCatalogs { get; }
Public ReadOnly Property FullTextCatalogs As FullTextCatalogCollection
Property Value

A FullTextCatalogCollection object that represents all the full-text catalogs defined on the database.

Examples

VB

'Connect to the local, default instance of SQL Server.  
Dim srv As Server  
srv = New Server  

'Reference the AdventureWorks2012 database.  
Dim db As Database  
db = srv.Databases("AdventureWorks2012")  

'Display all the full-text catalogs in the database.  
Dim ftc As FullTextCatalog  
For Each ftc In db.FullTextCatalogs  
   Console.WriteLine(ftc.Name)  
Next  

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")  
$db = New-Object Microsoft.SqlServer.Management.Smo.Database  
$db = $srv.Databases.Item("AdventureWorks2012")  

Foreach ($ftc in $db.FullTextCatalogs)  
{  
   Write-Host $ftc.Name  
}  

Remarks

Specific full-text catalogs can be referenced by using this collection by specifying the name of the full-text catalog. To add a new full-text catalog to the collection, call the full-text catalog constructor.

Applies to