## Source class


Represents an individual source, such as a book, journal article, or interview.

```cpp
class Source : public System::Object
```

## Methods

| Method | Description |
| --- | --- |
| [get_AbbreviatedCaseNumber](./get_abbreviatedcasenumber/)() const | Gets or sets the abbreviated case number of a source. |
| [get_AlbumTitle](./get_albumtitle/)() const | Gets or sets the album title of a source. |
| [get_BookTitle](./get_booktitle/)() const | Gets or sets the book title of a source. |
| [get_Broadcaster](./get_broadcaster/)() const | Gets or sets the broadcaster of a source. |
| [get_BroadcastTitle](./get_broadcasttitle/)() const | Gets or sets the broadcast title of a source. |
| [get_CaseNumber](./get_casenumber/)() const | Gets or sets the case number of a source. |
| [get_ChapterNumber](./get_chapternumber/)() const | Gets or sets the chapter number of a source. |
| [get_City](./get_city/)() const | Gets or sets the city of a source. |
| [get_Comments](./get_comments/)() const | Gets or sets the comments of a source. |
| [get_ConferenceName](./get_conferencename/)() const | Gets or sets the conference or proceedings name of a source. |
| [get_Contributors](./get_contributors/)() const | Gets contributors list (author, editor, writer etc) of a source. |
| [get_CountryOrRegion](./get_countryorregion/)() const | Gets or sets the country or region of a source. |
| [get_Court](./get_court/)() const | Gets or sets the court of a source. |
| [get_Day](./get_day/)() const | Gets or sets the day of a source. |
| [get_DayAccessed](./get_dayaccessed/)() const | Gets or sets the day accessed of a source. |
| [get_Department](./get_department/)() const | Gets or sets the department of a source. |
| [get_Distributor](./get_distributor/)() const | Gets or sets the distributor of a source. |
| [get_Doi](./get_doi/)() const | Gets or sets the digital object identifier. |
| [get_Edition](./get_edition/)() const | Gets or sets the editor of a source. |
| [get_Guid](./get_guid/)() const | Gets or sets the guid of a source. |
| [get_Institution](./get_institution/)() const | Gets or sets the institution of a source. |
| [get_InternetSiteTitle](./get_internetsitetitle/)() const | Gets or sets the internet site title of a source. |
| [get_Issue](./get_issue/)() const | Gets or sets the issue of a source. |
| [get_JournalName](./get_journalname/)() const | Gets or sets the journal name of a source. |
| [get_Lcid](./get_lcid/)() const | Gets or sets the locale ID of a source. |
| [get_Medium](./get_medium/)() const | Gets or sets the medium of a source. |
| [get_Month](./get_month/)() const | Gets or sets the month of a source. |
| [get_MonthAccessed](./get_monthaccessed/)() const | Gets or sets the month accessed of a source. |
| [get_NumberVolumes](./get_numbervolumes/)() const | Gets or sets the number of volumes of a source. |
| [get_Pages](./get_pages/)() const | Gets or sets the pages of a source. |
| [get_PatentNumber](./get_patentnumber/)() const | Gets or sets the patent number of a source. |
| [get_PeriodicalTitle](./get_periodicaltitle/)() const | Gets or sets the periodical title of a source. |
| [get_ProductionCompany](./get_productioncompany/)() const | Gets or sets the production company of a source. |
| [get_PublicationTitle](./get_publicationtitle/)() const | Gets or sets the publication title of a source. |
| [get_Publisher](./get_publisher/)() const | Gets or sets the publisher of a source. |
| [get_RecordingNumber](./get_recordingnumber/)() const | Gets or sets the recording number of a source. |
| [get_RefOrder](./get_reforder/)() const | Gets or sets the reference order of a source. |
| [get_Reporter](./get_reporter/)() const | Gets or sets the reporter of a source. |
| [get_ShortTitle](./get_shorttitle/)() const | Gets or sets the short title of a source. |
| [get_SourceType](./get_sourcetype/)() const | Gets or sets the source type of a source. |
| [get_StandardNumber](./get_standardnumber/)() const | Gets or sets the standard number of a source. |
| [get_StateOrProvince](./get_stateorprovince/)() const | Gets or sets the state or province of a source. |
| [get_Station](./get_station/)() const | Gets or sets the station of a source. |
| [get_Tag](./get_tag/)() const | Gets or sets the identifying tag name of a source. |
| [get_Theater](./get_theater/)() const | Gets or sets the theater of a source. |
| [get_ThesisType](./get_thesistype/)() const | Gets or sets the thesis type of a source. |
| [get_Title](./get_title/)() const | Gets or sets the title of a source. |
| [get_Type](./get_type/)() const | Gets or sets the type of a source. |
| [get_Url](./get_url/)() const | Gets or sets the url of a source. |
| [get_Version](./get_version/)() const | Gets or sets the version of a source. |
| [get_Volume](./get_volume/)() const | Gets or sets the volume of a source. |
| [get_Year](./get_year/)() const | Gets or sets the year of a source. |
| [get_YearAccessed](./get_yearaccessed/)() const | Gets or sets the year accessed of a source. |
| [GetType](./gettype/)() const override |  |
| [Is](./is/)(const System::TypeInfo\&) const override |  |
| [set_AbbreviatedCaseNumber](./set_abbreviatedcasenumber/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_AbbreviatedCaseNumber](./get_abbreviatedcasenumber/). |
| [set_AlbumTitle](./set_albumtitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_AlbumTitle](./get_albumtitle/). |
| [set_BookTitle](./set_booktitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_BookTitle](./get_booktitle/). |
| [set_Broadcaster](./set_broadcaster/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Broadcaster](./get_broadcaster/). |
| [set_BroadcastTitle](./set_broadcasttitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_BroadcastTitle](./get_broadcasttitle/). |
| [set_CaseNumber](./set_casenumber/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_CaseNumber](./get_casenumber/). |
| [set_ChapterNumber](./set_chapternumber/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_ChapterNumber](./get_chapternumber/). |
| [set_City](./set_city/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_City](./get_city/). |
| [set_Comments](./set_comments/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Comments](./get_comments/). |
| [set_ConferenceName](./set_conferencename/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_ConferenceName](./get_conferencename/). |
| [set_CountryOrRegion](./set_countryorregion/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_CountryOrRegion](./get_countryorregion/). |
| [set_Court](./set_court/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Court](./get_court/). |
| [set_Day](./set_day/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Day](./get_day/). |
| [set_DayAccessed](./set_dayaccessed/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_DayAccessed](./get_dayaccessed/). |
| [set_Department](./set_department/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Department](./get_department/). |
| [set_Distributor](./set_distributor/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Distributor](./get_distributor/). |
| [set_Doi](./set_doi/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Doi](./get_doi/). |
| [set_Edition](./set_edition/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Edition](./get_edition/). |
| [set_Guid](./set_guid/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Guid](./get_guid/). |
| [set_Institution](./set_institution/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Institution](./get_institution/). |
| [set_InternetSiteTitle](./set_internetsitetitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_InternetSiteTitle](./get_internetsitetitle/). |
| [set_Issue](./set_issue/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Issue](./get_issue/). |
| [set_JournalName](./set_journalname/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_JournalName](./get_journalname/). |
| [set_Lcid](./set_lcid/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Lcid](./get_lcid/). |
| [set_Medium](./set_medium/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Medium](./get_medium/). |
| [set_Month](./set_month/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Month](./get_month/). |
| [set_MonthAccessed](./set_monthaccessed/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_MonthAccessed](./get_monthaccessed/). |
| [set_NumberVolumes](./set_numbervolumes/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_NumberVolumes](./get_numbervolumes/). |
| [set_Pages](./set_pages/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Pages](./get_pages/). |
| [set_PatentNumber](./set_patentnumber/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_PatentNumber](./get_patentnumber/). |
| [set_PeriodicalTitle](./set_periodicaltitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_PeriodicalTitle](./get_periodicaltitle/). |
| [set_ProductionCompany](./set_productioncompany/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_ProductionCompany](./get_productioncompany/). |
| [set_PublicationTitle](./set_publicationtitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_PublicationTitle](./get_publicationtitle/). |
| [set_Publisher](./set_publisher/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Publisher](./get_publisher/). |
| [set_RecordingNumber](./set_recordingnumber/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_RecordingNumber](./get_recordingnumber/). |
| [set_RefOrder](./set_reforder/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_RefOrder](./get_reforder/). |
| [set_Reporter](./set_reporter/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Reporter](./get_reporter/). |
| [set_ShortTitle](./set_shorttitle/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_ShortTitle](./get_shorttitle/). |
| [set_SourceType](./set_sourcetype/)(Aspose::Words::Bibliography::SourceType) | Setter for [Aspose::Words::Bibliography::Source::get_SourceType](./get_sourcetype/). |
| [set_StandardNumber](./set_standardnumber/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_StandardNumber](./get_standardnumber/). |
| [set_StateOrProvince](./set_stateorprovince/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_StateOrProvince](./get_stateorprovince/). |
| [set_Station](./set_station/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Station](./get_station/). |
| [set_Tag](./set_tag/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Tag](./get_tag/). |
| [set_Theater](./set_theater/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Theater](./get_theater/). |
| [set_ThesisType](./set_thesistype/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_ThesisType](./get_thesistype/). |
| [set_Title](./set_title/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Title](./get_title/). |
| [set_Type](./set_type/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Type](./get_type/). |
| [set_Url](./set_url/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Url](./get_url/). |
| [set_Version](./set_version/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Version](./get_version/). |
| [set_Volume](./set_volume/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Volume](./get_volume/). |
| [set_Year](./set_year/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_Year](./get_year/). |
| [set_YearAccessed](./set_yearaccessed/)(const System::String\&) | Setter for [Aspose::Words::Bibliography::Source::get_YearAccessed](./get_yearaccessed/). |
| [Source](./source/)(const System::String\&, Aspose::Words::Bibliography::SourceType) | Initialize a new instance of the [Source](./) class. |
| static [Type](./type/)() |  |

## Examples



Shows how to get bibliography sources available in the document. 
```cpp
auto document = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Bibliography sources.docx"));

System::SharedPtr<Aspose::Words::Bibliography::Bibliography> bibliography = document->get_Bibliography();
ASSERT_EQ(12, bibliography->get_Sources()->get_Count());

// Get default data from bibliography sources.
System::SharedPtr<Aspose::Words::Bibliography::Source> source = bibliography->get_Sources()->LINQ_FirstOrDefault();
ASSERT_EQ(u"Book 0 (No LCID)", source->get_Title());
ASSERT_EQ(SourceType::Book, source->get_SourceType());
ASSERT_EQ(3, source->get_Contributors()->LINQ_Count());
ASSERT_TRUE(System::TestTools::IsNull(source->get_AbbreviatedCaseNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_AlbumTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_BookTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Broadcaster()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_BroadcastTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_CaseNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ChapterNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Comments()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ConferenceName()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_CountryOrRegion()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Court()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Day()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_DayAccessed()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Department()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Distributor()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Doi()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Edition()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Guid()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Institution()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_InternetSiteTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Issue()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_JournalName()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Lcid()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Medium()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Month()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_MonthAccessed()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_NumberVolumes()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Pages()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_PatentNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_PeriodicalTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ProductionCompany()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_PublicationTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Publisher()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_RecordingNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_RefOrder()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Reporter()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ShortTitle()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_StandardNumber()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_StateOrProvince()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Station()));
ASSERT_EQ(u"BookNoLCID", source->get_Tag());
ASSERT_TRUE(System::TestTools::IsNull(source->get_Theater()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_ThesisType()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Type()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Url()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Version()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Volume()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_Year()));
ASSERT_TRUE(System::TestTools::IsNull(source->get_YearAccessed()));

// Also, you can create a new source.
auto newSource = System::MakeObject<Aspose::Words::Bibliography::Source>(u"New source", SourceType::Misc);

System::SharedPtr<Aspose::Words::Bibliography::ContributorCollection> contributors = source->get_Contributors();
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Artist()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_BookAuthor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Compiler()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Composer()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Conductor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Counsel()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Director()));
ASSERT_FALSE(System::TestTools::IsNull(contributors->get_Editor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Interviewee()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Interviewer()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Inventor()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Performer()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Producer()));
ASSERT_FALSE(System::TestTools::IsNull(contributors->get_Translator()));
ASSERT_TRUE(System::TestTools::IsNull(contributors->get_Writer()));

System::SharedPtr<Aspose::Words::Bibliography::Contributor> editor = contributors->get_Editor();
ASSERT_EQ(2, (System::ExplicitCast<Aspose::Words::Bibliography::PersonCollection>(editor))->LINQ_Count());

auto authors = System::ExplicitCast<Aspose::Words::Bibliography::PersonCollection>(contributors->get_Author());
ASSERT_EQ(2, authors->LINQ_Count());

System::SharedPtr<Aspose::Words::Bibliography::Person> person = authors->idx_get(0);
ASSERT_EQ(u"Roxanne", person->get_First());
ASSERT_EQ(u"Brielle", person->get_Middle());
ASSERT_EQ(u"Tejeda", person->get_Last());
```

## See Also

* Namespace [Aspose::Words::Bibliography](../)
* Library [Aspose.Words for C++](../../)
