<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-07-16</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000882150</issuerCik>
        <issuerName>BLACKROCK MUNIYIELD NEW YORK QUALITY FUND, INC.</issuerName>
        <issuerTradingSymbol>MYN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001344146</rptOwnerCik>
            <rptOwnerName>Toronto Dominion Investments, Inc.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>1 VANDERBILT AVENUE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10017</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0000744464</rptOwnerCik>
            <rptOwnerName>TORONTO DOMINION HOLDINGS USA INC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>1 VANDERBILT AVENUE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10017</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001710914</rptOwnerCik>
            <rptOwnerName>TD GROUP US HOLDINGS LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>251 LITTLE FALLS DRIVE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>WILMINGTON</rptOwnerCity>
            <rptOwnerState>DE</rptOwnerState>
            <rptOwnerZipCode>19808</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0000947263</rptOwnerCik>
            <rptOwnerName>TORONTO DOMINION BANK</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>TORONTO-DOMINION CENTRE, P.O. BOX 1</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>TORONTO, ONTARIO</rptOwnerCity>
            <rptOwnerState>A6</rptOwnerState>
            <rptOwnerZipCode>M5K 1A2</rptOwnerZipCode>
            <rptOwnerStateDescription>ONTARIO, CANADA</rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Variable Rate Demand Preferred Shares</value>
            </securityTitle>
            <transactionDate>
                <value>2025-07-16</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>467</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                    <footnoteId id="F1"/>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>2010</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The 467 Variable Rate Demand Preferred Shares reported as disposed of in Table I represent Variable Rate Demand Preferred Shares of the Issuer (the &quot;VMTP Shares&quot;) that were beneficially owned by Toronto Dominion Investments, Inc. (&quot;TDI&quot;). The VMTP Shares were disposed of as a result of a redemption by the Issuer for a redemption price of $ $100,107.42467 per share (which includes a liquidation preference of $100,000.00 per share and accrued dividends of $107.42467 per share). TDI is a wholly owned indirect subsidiary of The Toronto-Dominion Bank (&quot;TD Bank&quot;).</footnote>
        <footnote id="F2">This statement is jointly filed by TD Bank, TDI, Toronto Dominion Holdings (U.S.A.), Inc. (&quot;TDH&quot;), and TD Group US Holdings LLC (&quot;TD GUS&quot;). The VMTP Shares are owned directly by TDI. Toronto Dominion Holdings (U.S.A.), Inc. (&quot;TDH&quot;) is the sole owner of TDI and TD Group US Holdings LLC (&quot;TD GUS&quot;) is the sole owner of TDH. TD Bank is the sole owner of TD GUS. TD Bank, TDH, and TD GUS hold an indirect interest in the VMTP Shares by virtue of their ownership of TDI.</footnote>
        <footnote id="F3">Each reporting person declares that neither the filing of this statement nor anything herein shall be construed as an admission that such person is, for the purposes of Section 13(d) of the US Securities Exchange Act of 1934 or any other purpose, (i) acting (or has agreed or is agreeing to act together with any other person) as a partnership, limited partnership, syndicate or other group for the purpose of acquiring, holding or disposing of securities of the Issuer or otherwise with respect to the Issuer or any securities of the Issuer or (ii) a member of any group with respect to the Issuer or any securities of the Issuer.</footnote>
    </footnotes>

    <remarks>Exhibits Index
Exhibit 99.1 - Joint Filing Agreement
Exhibit 99.2 - Joint Filer Information</remarks>

    <ownerSignature>
        <signatureName>/s/ Christina Petrou on behalf of TORONTO DOMINION INVESTMENTS, INC.</signatureName>
        <signatureDate>2025-07-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Christina Petrou on behalf of TORONTO DOMINION HOLDINGS (U.S.A.), INC</signatureName>
        <signatureDate>2025-07-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Salma Salman on behalf of TD GROUP US HOLDINGS LLC</signatureName>
        <signatureDate>2025-07-18</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Christina Petrou on behalf of TORONTO-DOMINION BANK</signatureName>
        <signatureDate>2025-07-18</signatureDate>
    </ownerSignature>
</ownershipDocument>
